Exemplo n.º 1
0
<?php

$oResults = myUsersSet::instance()->setDb($oBackupDatabase)->fetchAll();
foreach ($oResults as $oUser) {
    $oUser->save();
}
<?php

// Retrieve all the users with an email address from the example.org domain
$oSubset = new myUsersSet(array('user_email' => array('REGEXP', '.+@example\\.org')));
$oResults = $oSubset->fetchAll();
Exemplo n.º 3
0
<?php

$oSet = new myUsersSet();
$oUser = $oSet->fetch(42);
echo 'Your profile is: ' . $oUser['profile_label'];
// echoes 'Your profile is Administrator'
Exemplo n.º 4
0
<?php

$oSet = new myUsersSet();
$iCount = $oSet->count();
Exemplo n.º 5
0
<?php

$oResults = myUsersSet::instance()->fetchAll();
foreach ($oResults as $oUser) {
    $oUser->setDb($oBackupDatabase)->save();
}