Public Member Functions | |
tableName () | |
rules () | |
childOf (PersonalisationAttribute $parent) | |
getChildren () | |
getChildrenIds () | |
relations () | |
attributeLabels () | |
search () | |
delete () |
Static Public Member Functions | |
static | model ($className=__CLASS__) |
static | flatListForUser ($userId, $cache=true) |
static | getTree () |
static | getTreeWithUserState ($userId) |
Definition at line 22 of file PersonalisationAttribute.php.
PersonalisationAttribute::attributeLabels | ( | ) |
Returns customized attribute labels (name=>label)
Definition at line 138 of file PersonalisationAttribute.php.
PersonalisationAttribute::childOf | ( | PersonalisationAttribute | $parent | ) |
sets id of parent
\PersonalisationAttribute | $parent |
Definition at line 81 of file PersonalisationAttribute.php.
PersonalisationAttribute::delete | ( | ) |
Delete personalisation attribute with children and UserPersonalisationAttribute records
Definition at line 176 of file PersonalisationAttribute.php.
References getChildrenIds(), and model().
|
static |
Get personalisation attributes for user in flat list form
int | $userId | user id |
bool | $cache | defines if rrsult should be cached |
Definition at line 203 of file PersonalisationAttribute.php.
References model().
Referenced by UserIdentity\authenticate(), SUserIdentity\authenticate(), BasicPersonalisationRule\checkAccess(), and NavigationWidget\createCacheKey().
PersonalisationAttribute::getChildren | ( | ) |
Find all children of current personalisation attribute
Definition at line 92 of file PersonalisationAttribute.php.
References model().
PersonalisationAttribute::getChildrenIds | ( | ) |
Get children ids
Definition at line 102 of file PersonalisationAttribute.php.
References tableName().
Referenced by delete().
|
static |
Get associative array which represents all existed personalisation attributes in tree structure
Definition at line 235 of file PersonalisationAttribute.php.
References model().
Referenced by PersonalisationAttributeHelper\getTreeJs(), and getTreeWithUserState().
|
static |
Get personalisation attributes tree with user state
integer | $userId | id uf user |
Definition at line 273 of file PersonalisationAttribute.php.
References getTree(), and model().
Referenced by PersonalisationAttributeHelper\getTreeWithUserStateJs().
|
static |
Returns the static model of the specified AR class.
string | $className | active record class name. |
Definition at line 37 of file PersonalisationAttribute.php.
Referenced by ManageController\actionDeleteAttribute(), ManageController\actionSaveAttribute(), ManageController\actionUpdateUserAttribute(), delete(), flatListForUser(), getChildren(), getTree(), and getTreeWithUserState().
PersonalisationAttribute::relations | ( | ) |
returns relations rules
Definition at line 124 of file PersonalisationAttribute.php.
array $_flatLists inclass cache for personalisation flat PersonalisationAttribute::rules | ( | ) |
returns validation rules
Definition at line 57 of file PersonalisationAttribute.php.
PersonalisationAttribute::search | ( | ) |
Retrieves a list of models based on the current search/filter conditions.
Definition at line 152 of file PersonalisationAttribute.php.
PersonalisationAttribute::tableName | ( | ) |
returnes a table name
Definition at line 47 of file PersonalisationAttribute.php.
Referenced by getChildrenIds().