Summary
This class represents a menu element and is used to build any kind of menu
This class represents a menu element and is used to build any kind of menu
__construct(string $title, $module_id, $category, $name = \Feed::DEFAULT_FEED_NAME, $number = 10, $begin_at)
Build a Menu element.
string | $title | the Menu title |
$module_id | ||
$category | ||
$name | ||
$number | ||
$begin_at |
None found |
need_cached_string() : boolean
Check if the menu needs to be cached
true if the menu need to be cached
None found |
display() : string
Display the menu
the menu parsed in xHTML
None found |
admin_display() : string
Display the menu admin gui
the menu parsed in xHTML
None found |
id(integer $id)
integer | $id | Set the Menu database id |
None found |
check_auth() : boolean
Check the user authorization to see the LinksMenuElement
true if the user is authorised, false otherwise
None found |
set_title( $title)
$title |
None found |
set_auth( $auth)
$auth |
None found |
enabled(boolean $enabled = self::MENU_ENABLED)
boolean | $enabled | Enable or not the Menu |
None found |
set_block( $block) : integer
$block |
the Menu $block position
None found |
set_block_position(integer $position)
integer | $position | the Menu position to set |
None found |
set_hidden_with_small_screens( $value)
$value |
None found |
set_disabled_body( $value)
$value |
None found |
set_pushed_content( $value)
$value |
None found |
set_pushmenu_opening( $value)
$value |
None found |
set_pushmenu_expanding( $value)
$value |
None found |
get_formated_title() : string
the displayable Menu $title
None found |
get_title() : string
the Menu $title
None found |
get_auth() : array
the authorization array $auth
None found |
get_id() : integer
the $id of the menu in the database
None found |
get_block() : integer
the Menu $block position
None found |
get_block_position() : integer
the Menu $position
None found |
is_enabled() : boolean
true if the Menu is enabled, false otherwise
None found |
is_hidden_with_small_screens() : boolean
check if menu is hidden with small screens
None found |
is_disabled_body() : boolean
check if body is disabled (pushmenu)
None found |
is_pushed_content() : boolean
check if body is pushed (pushmenu)
None found |
get_pushmenu_opening() : string
the opening of the pushmenu
None found |
get_pushmenu_expanding() : string
the expanding of the pushmenu
None found |
get_filters() : string
the menu filters
None found |
set_filters(\Array<Filter> $filters)
Sets the filters of the menu
\Array |
$filters | Filters of the menu |
None found |
set_template(\Template $template)
Sets the template of the menu
\Template | $template | Template of the menu |
None found |
get_template(string $id, string $name = '', string $block_position = \Menu::BLOCK_POSITION__LEFT, $hidden_with_small_screens = false, $module_id = '') : \the
Returns the tpl to parse a feed
string | $id | The feed id |
string | $name | The feed name |
string | $block_position | The indentifier block position defined in the inherit class menu |
$hidden_with_small_screens | ||
$module_id |
tpl to parse a feed
static |
get_module_id() : string
the feed menu module id
None found |
get_url(boolean $relative = false) : \Return
boolean | $relative | If false, compute the absolute url, else, returns the relative one |
the absolute feed Url
None found |
set_module_id(string $value)
string | $value | the feed's module_id |
None found |
set_cat(integer $value)
integer | $value | the feed's category |
None found |
set_name(string $value)
string | $value | the feed's name |
None found |
get_number() : \Return
the number of elements displayed in the menu
None found |
set_number(string $value)
string | $value | the number of elements displayed in the menu |
None found |
_assign(\Template $template)
Assign tpl vars
\Template | $template | the template on which we gonna assign vars |
None found |
assign_common_template_variables(\Template $template)
Assign default tpl vars
\Template | $template | the template on which we gonna assign vars |
None found |
get_template_to_use() : \Template
None found |
get_default_template() : string
Get the default template of the menu
the default template of the menu
None found |
$id : integer
None found |
$title : string
None found |
$auth : \int[string]
None found |
$enabled : boolean
None found |
$block : integer
None found |
$position : integer
None found |
$pushmenu_opening : string
None found |
$pushmenu_expanding : string
None found |
$filters : \Array<Filter>
None found |
$url : string
None found |
$module_id :
None found |
$name :
None found |
$category :
None found |
$number :
None found |
$begin_at :
None found |
$hidden_with_small_screens : boolean
None found |
$disabled_body : boolean
None found |
$pushed_content : boolean
None found |
$template : \Template
None found |
MENU_AUTH_BIT = 1
None found |
MENU_ENABLE_OR_NOT = 42
None found |
MENU_ENABLED = true
None found |
MENU_NOT_ENABLED = false
None found |
BLOCK_POSITION__NOT_ENABLED = 0
None found |
BLOCK_POSITION__HEADER = 1
None found |
BLOCK_POSITION__SUB_HEADER = 2
None found |
BLOCK_POSITION__TOP_CENTRAL = 3
None found |
BLOCK_POSITION__BOTTOM_CENTRAL = 4
None found |
BLOCK_POSITION__TOP_FOOTER = 5
None found |
BLOCK_POSITION__FOOTER = 6
None found |
BLOCK_POSITION__LEFT = 7
None found |
BLOCK_POSITION__RIGHT = 8
None found |
BLOCK_POSITION__ALL = 9
None found |
PUSHMENU_LEFT = 'left'
None found |
PUSHMENU_RIGHT = 'right'
None found |
PUSHMENU_TOP = 'top'
None found |
PUSHMENU_BOTTOM = 'bottom'
None found |
PUSHMENU_OVERLAP = 'overlap'
None found |
PUSHMENU_EXPAND = 'expand'
None found |
PUSHMENU_NONE = 'false'
None found |
MENU__CLASS = 'Menu'
None found |
FEED_MENU__CLASS = 'FeedMenu'
None found |