Свойство | 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". |
Méthode | 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. |
Méthode | 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 | ||
Résultat | void |
public beforeValidate ( ) : void | ||
Résultat | void |
public generateReferences ( Cms\Classes\Page $page ) : array | ||
$page | Cms\Classes\Page | The current page object. |
Résultat | array | Returns an array of the \RainLab\Pages\Classes\MenuItemReference objects. |
public getCodeAttribute ( ) : string | ||
Résultat | string |
public getItemDataAttribute ( ) : array | ||
Résultat | array |
public getItemsAttribute ( ) : array | ||
Résultat | array |
public getNameAttribute ( ) : string | ||
Résultat | string |
public static initCacheItem ( &$item ) |
protected parseContent ( ) : array | null | ||
Résultat | array | null |
protected renderContent ( ) : string | ||
Résultat | string |
public setCodeAttribute ( string $code ) : Cms\Classes\CmsObject | ||
$code | string | Specifies the file code. |
Résultat | Cms\Classes\CmsObject | Returns the object instance. |
protected $contentDataCache |
protected $dirName |