Property | Type | Description | |
---|---|---|---|
$allowedExtensions | Allowable file extensions. | ||
$contentDataCache | Cache store used by parseContent method. | ||
$defaultExtension | Default file extension. | ||
$dirName | The container name associated with the model, eg: pages. | ||
$fillable | The attributes that are mass assignable. | ||
$purgeable | List of attribute names which are not considered "settings". |
Method | Description | |
---|---|---|
beforeSave ( ) : void | Triggered before the menu is saved. | |
beforeValidate ( ) : void | Validate custom attributes. | |
generateReferences ( Cms\Classes\Page $page ) : array | Returns the menu item references. | |
getCodeAttribute ( ) : string | Returns the menu code. | |
getItemDataAttribute ( ) : array | Returns a default value for itemData attribute. | |
getItemsAttribute ( ) : array | Returns a default value for items attribute. | |
getNameAttribute ( ) : string | Returns a default value for name attribute. | |
initCacheItem ( &$item ) | Initializes a cache item. | |
setCodeAttribute ( string $code ) : Cms\Classes\CmsObject | Sets the menu code. |
Method | Description | |
---|---|---|
parseContent ( ) : array | null | Processes the content attribute to an array of menu data. | |
renderContent ( ) : string | Renders the menu data as a content string in YAML format. |
public beforeSave ( ) : void | ||
return | void |
public beforeValidate ( ) : void | ||
return | void |
public generateReferences ( Cms\Classes\Page $page ) : array | ||
$page | Cms\Classes\Page | The current page object. |
return | array | Returns an array of the \RainLab\Pages\Classes\MenuItemReference objects. |
public getCodeAttribute ( ) : string | ||
return | string |
public getItemDataAttribute ( ) : array | ||
return | array |
public getItemsAttribute ( ) : array | ||
return | array |
public getNameAttribute ( ) : string | ||
return | string |
public static initCacheItem ( &$item ) |
protected parseContent ( ) : array | null | ||
return | array | null |
protected renderContent ( ) : string | ||
return | string |
public setCodeAttribute ( string $code ) : Cms\Classes\CmsObject | ||
$code | string | Specifies the file code. |
return | Cms\Classes\CmsObject | Returns the object instance. |
protected $contentDataCache |
protected $dirName |