本文整理匯總了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;