本文整理匯總了PHP中eZUserSetting::definition方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZUserSetting::definition方法的具體用法?PHP eZUserSetting::definition怎麽用?PHP eZUserSetting::definition使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eZUserSetting
的用法示例。
在下文中一共展示了eZUserSetting::definition方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: removeByUserID
static function removeByUserID($userID)
{
eZPersistentObject::removeObject(eZUserSetting::definition(), array('user_id' => $userID));
}
示例2: fetchUnactivated
/**
* Return an array of unactivated eZUser object
*
* @param array|false|null An associative array of sorting conditions,
* if set to false ignores settings in $def, if set to null uses
* settingss in $def.
* @param int $limit
* @param int $offset
* @return array( eZUser )
*/
public static function fetchUnactivated($sort = false, $limit = 10, $offset = 0)
{
$accountDef = eZUserAccountKey::definition();
$settingsDef = eZUserSetting::definition();
return eZPersistentObject::fetchObjectList(eZUser::definition(), null, null, $sort, array('limit' => $limit, 'offset' => $offset), true, false, null, array($accountDef['name'], $settingsDef['name']), " WHERE contentobject_id = {$accountDef['name']}.user_id" . " AND {$settingsDef['name']}.user_id = contentobject_id" . " AND is_enabled = 0");
}