Свойство | Тип | Описание | |
---|---|---|---|
$parentAttribute | model attribute | ||
$parentRelation | model parent BELONGS_TO relation | ||
$statAttribute | Stat relation name (defined in defaultCriteria) |
Метод | Описание | |
---|---|---|
findByPath ( string $path ) : CActiveRecord | Finds model by path | |
getAliasList ( mixed $parent ) : array | Returns associated array ($alias=>$fullTitle, $alias=>$fullTitle, . | |
getAssocList ( mixed $parent ) : array | Returns associated array ($id=>$fullTitle, $id=>$fullTitle, . | |
getBreadcrumbs ( boolean $lastLink = false ) : array | Constructs breadcrumbs for zii.widgets.CBreadcrumbs widget | |
getChildsArray ( mixed $parent ) : array | Returns array of primary keys of children items | |
getFullTitle ( $inverse = false, string $separator = ' - ' ) : string | Constructs full title for current model | |
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 ( integer $sub, mixed $parent ) : array | Returns items for zii.widgets.CMenu widget | |
getPath ( string $separator = '/' ) : string | Constructs full path for current model | |
getTabList ( mixed $parent ) : array | Returns tabulated array ($id=>$title, $id=>$title, . | |
getUrlList ( mixed $parent ) : array | Returns tabulated array ($url=>$title, $url=>$title, . | |
isChildOf ( mixed $parent ) : boolean | Checks for current model is child of parent |
Метод | Описание | |
---|---|---|
_childsArrayRecursive ( &$items, &$result, $parent_id ) | ||
_getMenuListRecursive ( $items, $parent, $sub ) : array | ||
_getTabListRecursive ( &$items, &$result, $parent_id, integer $indent ) | ||
_getUrlListRecursive ( $items, $parent, integer $indent ) : array | ||
arrayFromArgs ( $items ) : array | ||
getChildByAlias ( $alias, null $criteria = null ) : mixed | ||
getFullAssocData ( $attributes, integer $parent ) : array | CDbDataReader | ||
processParents ( $parent ) : array |
Метод | Описание | |
---|---|---|
getAttributeValue ( $name, $item ) |
protected _childsArrayRecursive ( &$items, &$result, $parent_id ) | ||
$items | ||
$result | ||
$parent_id |
protected _getMenuListRecursive ( $items, $parent, $sub ) : array | ||
$items | ||
$parent | ||
$sub | ||
Результат | array |
protected _getTabListRecursive ( &$items, &$result, $parent_id, integer $indent ) | ||
$items | ||
$result | ||
$parent_id | ||
$indent | integer |
protected _getUrlListRecursive ( $items, $parent, integer $indent ) : array | ||
$items | ||
$parent | ||
$indent | integer | |
Результат | array |
public findByPath ( string $path ) : CActiveRecord | ||
$path | string | |
Результат | CActiveRecord | model |
public getAliasList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
Результат | array |
public getAssocList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
Результат | array |
public getBreadcrumbs ( boolean $lastLink = false ) : array | ||
$lastLink | boolean | if you can have link in last element |
Результат | array |
protected getChildByAlias ( $alias, null $criteria = null ) : mixed | ||
$alias | ||
$criteria | null | |
Результат | mixed |
public getChildsArray ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
Результат | array |
protected getFullAssocData ( $attributes, integer $parent ) : array | CDbDataReader | ||
$attributes | ||
$parent | integer | |
Результат | array | CDbDataReader |
public getFullTitle ( $inverse = false, string $separator = ' - ' ) : string | ||
$separator | string | |
Результат | string |
public getLinkActive ( ) : boolean | ||
Результат | boolean | true if current request url matches with category path |
public getTabList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
Результат | array |
public getUrlList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
Результат | array |
protected processParents ( $parent ) : array | ||
$parent | ||
Результат | array |