本文整理汇总了PHP中eZUser::fetchUnactivated方法的典型用法代码示例。如果您正苦于以下问题:PHP eZUser::fetchUnactivated方法的具体用法?PHP eZUser::fetchUnactivated怎么用?PHP eZUser::fetchUnactivated使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eZUser
的用法示例。
在下文中一共展示了eZUser::fetchUnactivated方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
default:
$limit = 10;
}
$unactivatedCount = eZUserAccountKey::count(eZUserAccountKey::definition());
$unactivated = array();
$availableSortFields = array('time' => 'time', 'login' => 'login', 'email' => 'email');
$availableSortOrders = array('asc' => 'asc', 'desc' => 'desc');
// default sort field/sort order
$SortField = 'time';
$SortOrder = 'asc';
if (isset($Params['SortField']) && $availableSortFields[$Params['SortField']]) {
$SortField = $Params['SortField'];
}
if (isset($Params['SortOrder']) && $availableSortOrders[$Params['SortOrder']]) {
$SortOrder = $Params['SortOrder'];
}
if ($unactivatedCount > 0) {
$unactivated = eZUser::fetchUnactivated(array($SortField => $SortOrder), $limit, $Offset);
}
$tpl->setVariable('unactivated_count', $unactivatedCount);
$tpl->setVariable('unactivated_users', $unactivated);
$tpl->setVariable('sort_field', $SortField);
$tpl->setVariable('sort_order', $SortOrder);
$tpl->setVariable('limit_preference', $limitPreference);
$tpl->setVariable('number_of_items', $limit);
$tpl->setVariable('view_parameters', array('offset' => $Offset));
$tpl->setVariable('module', $Module);
$functions = $Module->attribute('functions');
$Result['path'] = array(array('text' => ezpI18n::tr('kernel/user', 'User'), 'url' => false), array('text' => ezpI18n::tr('kernel/user', 'Unactivated users'), 'url' => $functions['unactivated']['uri']));
$Result['content'] = $tpl->fetch('design:user/unactivated.tpl');
return $Result;