Source for file test.php
Documentation is available at test.php
require_once 'LiveUser/Admin.php';
$dsn = 'mysql://root:@localhost/liveuser_admin_test';
'authContainers' => array (
'file' => 'Auth_XML.xml',
'passwordEncryptionMode' => 'MD5'
'permContainer' => array (
'storage' => array ('MDB2' => array ('dsn' => $dsn, 'prefix' => 'liveuser_')),
$lu->setAdminContainers ();
'auth_container_name' => '0',
$params_applications = array ();
$params_groups = array ('filters' => array ('perm_user_id' => '1'));
#var_dump($lu->perm->getRights($params_rights));
echo 'underlying query:';
var_dump($lu->perm ->_storage ->dbc ->last_query );
#var_dump($lu->perm->getUsers($params_users));
echo 'underlying query:';
var_dump($lu->perm ->_storage ->dbc ->last_query );
var_dump($lu->perm ->getApplications ($params_applications));
echo 'underlying query:';
var_dump($lu->perm ->_storage ->dbc ->last_query );
var_dump($lu->perm ->getAreas ($params_areas));
echo 'underlying query:';
var_dump($lu->perm ->_storage ->dbc ->last_query );
var_dump($lu->perm ->getGroups ($params_groups));
echo 'underlying query:';
var_dump($lu->perm ->_storage ->dbc ->last_query );
Documentation generated on Mon, 11 Mar 2019 14:29:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|