Class

LinksMenuElement

Abstract Package: PHPBoost\Menu\links Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2016 10 24 Since: PHPBoost 2.0 - 2008 07 08 Contributor: Loic ROUCHON horn@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: phpboost/menu/links/LinksMenuElement.class.php

A LinksMenuElement contains a Title, an url, and an image url

Abstract class : Do not instanciate it LinksMenuLink and LinksMenuLink classes are based on this class use, on of these
Menu
Extended by LinksMenuElement
Direct known subclasses
LinksMenu, LinksMenuLink
Methods summary
public
# __construct( $title, $url, $image = '', integer $id,… )

Build a LinksMenuElement object

protected
# _assign( Template $template, integer $mode = self::LINKS_MENU_ELEMENT__CLASSIC_DISPLAYING )

Assign tpl vars

protected
# _parent( $type )

Increase the Menu Depth and set the menu type to its parent one

public
# set_image( string $image )
public
# set_url( string $url )
public integer
# get_uid( )

Returns the menu uid

public
# update_uid( )

Update the menu uid

public string
# get_url( boolean $compute_relative_url = true )
public string
# get_image( boolean $compute_relative_url = true )
Constants summary
Properties summary
public string $url

the LinksMenuElement url

# ''
public string $image

the image url. Could be relative to the website root or absolute

# ''
public integer $uid

Menu's uid

# null
public integer $depth

Menu's depth

# 0