本文整理匯總了PHP中CMediusers::loadGroupList方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMediusers::loadGroupList方法的具體用法?PHP CMediusers::loadGroupList怎麽用?PHP CMediusers::loadGroupList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMediusers
的用法示例。
在下文中一共展示了CMediusers::loadGroupList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CMediusers
<?php
/**
* Color selector
*
* @category Mediusers
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version SVN: $Id:$
* @link http://www.mediboard.org
*/
CCanDo::checkAdmin();
$mediuser = new CMediusers();
$mediusers = $mediuser->loadGroupList();
foreach ($mediusers as $mediuser) {
$mediuser->insFunctionPermission();
$mediuser->insGroupPermission();
}
CAppUI::stepAjax(count($mediusers) . " utilisateurs vérifiés");
示例2: CUserLog
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage System
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkAdmin();
$log = new CUserLog();
$log->object_class = CValue::postOrSession("object_class");
$log->date = CValue::postOrSession("date");
$log->user_id = CValue::postOrSession("user_id");
$do_it = CValue::post("do_it");
$user = new CMediusers();
$users = $user->loadGroupList();
foreach ($users as $_user) {
$_user->loadRefFunction();
}
$classes = Capp::getInstalledClasses();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("log", $log);
$smarty->assign("users", $users);
$smarty->assign("classes", $classes);
$smarty->assign("do_it", $do_it);
$smarty->display("view_object_restore.tpl");