本文整理汇总了PHP中KunenaAccess::loadModerators方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaAccess::loadModerators方法的具体用法?PHP KunenaAccess::loadModerators怎么用?PHP KunenaAccess::loadModerators使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KunenaAccess
的用法示例。
在下文中一共展示了KunenaAccess::loadModerators方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadModerators
protected function loadModerators()
{
$list = $this->joomlaAccess->loadModerators();
// TODO: add support into CB
$params = array('list' => &$list);
$this->integration->trigger('loadModerators', $params);
return parent::loadModerators($list);
}
示例2: loadModerators
protected function loadModerators()
{
$db = JFactory::getDBO();
$query = "SELECT u.id AS userid, m.catid\n\t\t\t\tFROM #__users AS u\n\t\t\t\tINNER JOIN #__kunena_users AS ku ON u.id=ku.userid\n\t\t\t\tLEFT JOIN #__kunena_moderation AS m ON u.id=m.userid\n\t\t\t\tLEFT JOIN #__kunena_categories AS c ON m.catid=c.id\n\t\t\t\tWHERE u.block='0' AND ku.moderator='1' AND (m.catid IS NULL OR c.moderated='1')";
$db->setQuery($query);
$list = (array) $db->loadObjectList();
KunenaError::checkDatabaseError();
return parent::loadModerators($list);
}