summaryrefslogtreecommitdiff
path: root/it_user.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_user.class')
-rw-r--r--it_user.class9
1 files changed, 7 insertions, 2 deletions
diff --git a/it_user.class b/it_user.class
index 914d3e3..2f891ef 100644
--- a/it_user.class
+++ b/it_user.class
@@ -59,7 +59,7 @@ class it_user extends it_dbi
* Constructor
* @param $p array(key => value) of configuration data
*/
-function it_user($p = array())
+function __construct($p = array())
{
$this->p = $p + array(
'uid_field' => 'ID',
@@ -71,12 +71,17 @@ function it_user($p = array())
);
# Default to uid being primary key, may change later
- $this->it_dbi(array('table' => $this->p['table'], 'keyfield' => $this->p['uid_field']));
+ parent::__construct(array('table' => $this->p['table'], 'keyfield' => $this->p['uid_field']));
$this->session = new it_session;
$this->status = _IT_USER_STATUS_INVALID;
}
+# Migration helper function
+function it_user($p = array())
+{
+ return self::__construct($p);
+}
/**
* Post processing, called by ITools after reading a database record