Source for file admin_example_mdb2.php
Documentation is available at admin_example_mdb2.php
require_once 'config_mdb2.inc.php';
require_once 'LiveUser/Admin/Admin.php';
array ('name' => 'name', 'value' => 'asdfMDB22', 'type' => 'text'),
array ('name' => 'email', 'value' => 'fleh@example.comMDB23', 'type' => 'text')
$user_id = $admin->addUser ('johndoe', 'dummypass', true , null , null , null , $custom);
echo 'Created User Id ' . $user_id . '<br />';
$admin->removeUser (($user_id - 2 ));
echo 'Removed User Id ' . ($user_id - 2 ) . '<br />';
array ('name' => 'name', 'value' => 'asdfMDBUpdated22', 'type' => 'text'),
array ('name' => 'email', 'value' => 'fleh@example.comMDBUpdated22', 'type' => 'text')
$admin->updateUser ($user_id, 'johndoe', 'dummypass', true , null , null , $custom);
echo 'Updated User Id ' . ($user_id - 1 ) . '<br />';
array ('name' => 'name', 'type' => 'text'),
array ('name' => 'email', 'type' => 'text')
$foo = $admin->getUser ($user_id, $custom);
echo 'No user with that ID was found';
array ('name' => 'name', 'type' => 'text'),
array ('name' => 'email', 'type' => 'text')
'email' => array ('op' => '=', 'value' => 'fleh@example.comMDBUpdated22', 'cond' => 'AND', 'type' => 'text'),
'name' => array ('op' => '=', 'value' => 'asdfMDBUpdated22', 'cond' => '', 'type' => 'text')
$foo1 = $admin->searchUsers ($filters, $cols);
echo 'These Users were found: <br />';
Documentation generated on Mon, 11 Mar 2019 10:16:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|