[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/class.account_mgr.php, 1.1.2.34
From: |
nomail |
Subject: |
[Phpgroupware-cvs] api/class.account_mgr.php, 1.1.2.34 |
Date: |
Sun, 23 May 2004 12:30:50 -0000 |
Update of /api
Modified Files:
Branch: proposal-branch
class.account_mgr.php
date: 2004/05/07 07:12:18; author: jengo; state: Exp; lines: +28 -4
Log Message:
Added support for symbolic datamine links
=====================================================================
Index: api/class.account_mgr.php
diff -u api/class.account_mgr.php:1.1.2.33 api/class.account_mgr.php:1.1.2.34
--- api/class.account_mgr.php:1.1.2.33 Fri Apr 16 20:59:48 2004
+++ api/class.account_mgr.php Fri May 7 07:12:18 2004
@@ -407,7 +407,7 @@
}
else
{
- $old_values['account_lid' ] =
$account->data['lid'];
+ $old_values['account_lid'] =
$account->data['lid'];
$old_values['account_firstname'] =
$account->data['firstname'];
$old_values['account_lastname'] =
$account->data['lastname'];
@@ -482,7 +482,7 @@
$result['history_data'] = $obj->get('api.accounts.' .
$args['account_id']);
$result['acl_options'] =
execMethod('api.acl_mgr.basic',array('account_id' => $args['account_id'],
'acl_check' => false));
- $result['datamine'] =
execMethod('api.datamine._get','api.accounts.' . $args['account_id']);
+ $result['datamine'] =
execMethod('api.datamine._get','api.account_mgr.' . $args['account_id']);
return $result;
}
@@ -570,6 +570,30 @@
);
$result['history_data'] = $history->get('api.sessions.'
. $args['account_id']);
$result['action_type'] = 'login_history';
+
+ return $result;
+ }
+
+ function _datamine_get()
+ {
+ $args = new safe_args();
+ $args->set('account_id',REQUIRED,'number');
+ extract($args->get(func_get_args()));
+
+ $GLOBALS['phpgw']->add_xsl('api.widgets');
+
+ // FIXME: This needs ACL check
+ $accounts =
createObject('api_accounts',$account_id);
+ $data = $accounts->data;
+ $result['expires'] =
strftime('%x',$data['expires']) . date(' h:i:s a',$data['expires']);
+
+ $result['id'] = $accounts->data['id'];
+ $result['lid'] = $accounts->data['lid'];
+ $result['firstname'] = $accounts->data['firstname'];
+ $result['lastname'] = $accounts->data['lastname'];
+ $result['status'] = $accounts->data['status'];
+ // The only type this can be is symbolic
+ $result['dm_type'] = 'S';
return $result;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/class.account_mgr.php, 1.1.2.34,
nomail <=