Property | Type | Description | |
---|---|---|---|
$parentAttribute | model attribute | ||
$parentRelation | model parent BELONGS_TO relation | ||
$statAttribute | Stat relation name (defined in defaultCriteria) |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
_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 |
Method | Description | |
---|---|---|
getAttributeValue ( $name, $item ) |
protected _childsArrayRecursive ( &$items, &$result, $parent_id ) | ||
$items | ||
$result | ||
$parent_id |
protected _getMenuListRecursive ( $items, $parent, $sub ) : array | ||
$items | ||
$parent | ||
$sub | ||
return | 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 | |
return | array |
public findByPath ( string $path ) : CActiveRecord | ||
$path | string | |
return | CActiveRecord | model |
public getAliasList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
return | array |
public getAssocList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
return | array |
public getBreadcrumbs ( boolean $lastLink = false ) : array | ||
$lastLink | boolean | if you can have link in last element |
return | array |
protected getChildByAlias ( $alias, null $criteria = null ) : mixed | ||
$alias | ||
$criteria | null | |
return | mixed |
public getChildsArray ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
return | array |
protected getFullAssocData ( $attributes, integer $parent ) : array | CDbDataReader | ||
$attributes | ||
$parent | integer | |
return | array | CDbDataReader |
public getFullTitle ( $inverse = false, string $separator = ' - ' ) : string | ||
$separator | string | |
return | string |
public getLinkActive ( ) : boolean | ||
return | boolean | true if current request url matches with category path |
public getTabList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
return | array |
public getUrlList ( mixed $parent ) : array | ||
$parent | mixed | number, object or array of numbers |
return | array |