프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_criteria | |||
$_primaryKey | |||
$_tableName | |||
$_tableSchema |
메소드 | 설명 | |
---|---|---|
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, . |
메소드 | 설명 | |
---|---|---|
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 createFindCommand ( $criteria ) : CDbCommand | ||
$criteria | ||
리턴 | CDbCommand |
public findByAlias ( $alias ) : CActiveRecord | ||
$alias | ||
리턴 | CActiveRecord | model |
protected getFullAssocData ( $attributes ) : array | CDbDataReader | ||
$attributes | ||
리턴 | array | CDbDataReader |
public getLinkActive ( ) : boolean | ||
리턴 | boolean | true if current request url matches with category alias |
public getMenuList ( ) : array | ||
리턴 | array |
public $defaultCachePrefix |
public $iconAttribute |
public $linkActiveAttribute |
public $requestPathAttribute |
public $urlAttribute |