Property | Type | Description | |
---|---|---|---|
$aliasAttribute | model attribute, which defined alias | ||
$cacheTag | Тег, по которому будут кешироваться записи | ||
$defaultCachePrefix | Если не будет указан конкретный тег, по которому происходит кеширование моделей, тег будет сформирован из префикса + класс модели | ||
$defaultCriteria | default criteria for all queries | ||
$iconAltAttribute | |||
$iconAttribute | model property, which contains icon. Optionally for 'image' value your model can have 'image' attribute or getImage() method, which construct correct url for using our getMenuList(). | ||
$iconTitleAttribute | |||
$linkActiveAttribute | model property, which return true for active menu item. Optionally declare own getLinkActive() method in your model. | ||
$requestPathAttribute | set this request property if you can use default getLinkActive() method | ||
$titleAttribute | model attribute used for showing title | ||
$urlAttribute | model property, which contains url. Optionally your model can have 'url' attribute or getUrl() method, which construct correct url for using our getMenuList(). | ||
$useCache | boolean |
Property | Type | Description | |
---|---|---|---|
$_criteria | |||
$_primaryKey | |||
$_tableName | |||
$_tableSchema |
Method | Description | |
---|---|---|
afterDelete ( CEvent $event ) | ||
afterSave ( CEvent $event ) | ||
findByAlias ( $alias ) : CActiveRecord | Finds model by alias attribute | |
getAliasList ( ) : array | Returns associated array ($alias=>$title, $alias=>$title, . | |
getArray ( ) : array | Return primary keys of all items | |
getAssocList ( ) : array | Returns associated array ($id=>$title, $id=>$title, . | |
getLinkActive ( ) : boolean | Optional redeclare this method in your model for use (@link getMenuList()) or define in (@link requestPathAttribute) your $_GET attribute for url matching | |
getMenuList ( ) : array | Returns items for zii.widgets.CMenu widget | |
getUrl ( ) : string | Redeclare this method in your model for use of (@link getMenuList()) method | |
getUrlList ( ) : array | Returns associated array ($url=>$title, $url=>$title, . |
Method | Description | |
---|---|---|
aliasAttributes ( $attributes ) : array | ||
cached ( null $model = null ) : CComponent | null | ||
clearOwnerCriteria ( ) | ||
createFindCommand ( $criteria ) : CDbCommand | ||
getCacheTag ( ) : string | ||
getFullAssocData ( $attributes ) : array | CDbDataReader | ||
getOriginalCriteria ( ) : mixed | ||
getOwnerCriteria ( ) : mixed | ||
getPrimaryKeyAttribute ( ) : mixed | ||
getTableName ( ) : mixed | ||
getTableSchema ( ) : mixed |
protected aliasAttributes ( $attributes ) : array | ||
$attributes | ||
return | array |
protected createFindCommand ( $criteria ) : CDbCommand | ||
$criteria | ||
return | CDbCommand |
public findByAlias ( $alias ) : CActiveRecord | ||
$alias | ||
return | CActiveRecord | model |
protected getFullAssocData ( $attributes ) : array | CDbDataReader | ||
$attributes | ||
return | array | CDbDataReader |
public getLinkActive ( ) : boolean | ||
return | boolean | true if current request url matches with category alias |
public getMenuList ( ) : array | ||
return | array |
public $defaultCachePrefix |
public $iconAttribute |
public $linkActiveAttribute |
public $requestPathAttribute |
public $urlAttribute |