Some LiveUser Questions
| From: | MFriedman at symcor dot com | Date: | Thu, 30 Oct 2003 16:49:48 +0000 |
| Subject: | Some LiveUser Questions | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-23145@lists.php.net to get a copy of this message | ||
Hello, I'm attempting to use LiveUser to build some front end interfaces to
do things like "addApplication" and "addUser" etc... I've examined the code
quite a bit and think I need to instantiate
LiveUser_Admin_Perm_Container_DB_Complex so that I can do these admin
functions.
Taking a look at the constructor I find I need to pass db connection info,
plus the configuration array. I don't really understand why I need both
however, since $conf should contain an existing connection.
My basic question is: should I instantiate
LiveUser_Admin_Perm_Container_DB_Complex directly? I wasn't able to find
any kind of factory method to indirectly get the admin object.
Thanks,
Matt.
/**
* Constructor
*
* The second parameters expects the smae array as you use
* when instantiating LiveUser::factory()
*
* @access protected
* @param mixed Array or PEAR::DB object.
* @param array configuration array
* @return void
* @see LiveUser::factory()
*/
function &LiveUser_Admin_Perm_Container_DB_Complex(&$connectOptions,
$conf)