本文整理汇总了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");