Property | Type | Description | |
---|---|---|---|
$belongsToMany | |||
$implement | |||
$rules | * Validation | ||
$table | |||
$translatable | Attributes that support translation, if available. |
Property | Type | Description | |
---|---|---|---|
$guarded |
Method | Description | |
---|---|---|
afterDelete ( ) | ||
beforeValidate ( ) | ||
getMenuTypeInfo ( string $type ) : array | Handler for the pages.menuitem.getTypeInfo event. | |
getPostCountAttribute ( ) | ||
resolveMenuItem ( RainLab\Pages\Classes\MenuItem $item, string $url, Cms\Classes\Theme $theme ) : mixed | Handler for the pages.menuitem.resolveItem event. | |
setUrl ( string $pageName, Cms\Classes\Controller $controller ) | Sets the "url" attribute with a URL to this object |
Method | Description | |
---|---|---|
getCategoryPageUrl ( $pageCode, $category, $theme ) | Returns URL of a category page. | |
listSubCategoryOptions ( ) |
protected static getCategoryPageUrl ( $pageCode, $category, $theme ) |
public static getMenuTypeInfo ( string $type ) : array | ||
$type | string | Specifies the menu item type |
return | array | Returns an array |
public static resolveMenuItem ( RainLab\Pages\Classes\MenuItem $item, string $url, Cms\Classes\Theme $theme ) : mixed | ||
$item | RainLab\Pages\Classes\MenuItem | Specifies the menu item. |
$url | string | Specifies the current page URL, normalized, in lower case The URL is specified relative to the website root, it includes the subdirectory name, if any. |
$theme | Cms\Classes\Theme | Specifies the current theme. |
return | mixed | Returns an array. Returns null if the item cannot be resolved. |