Overview

Namespaces

  • Menu
    • Items
      • Contents
    • Traits

Classes

  • Link
  • Raw
  • Overview
  • Namespace
  • Class

Class Link

A Link in an Item

HtmlObject\Link
Extended by Menu\Items\Contents\Link
Namespace: Menu\Items\Contents
Located at Menu/Items/Contents/Link.php
Methods summary
public
# __construct( string $url, string $value = null, array $attributes = array() )

Build a new Link

Build a new Link

Parameters

$url
Its URL
$value
Its text
$attributes
Facultative attributes
public Menu\Items\Contents\Link
# href( string $href )

Change the Link's URL

Change the Link's URL

Parameters

$href
An URL

Returns

Menu\Items\Contents\Link
public string
# getUrl( )

Get the link's href

Get the link's href

Returns

string
the href
public Item
# stop( )

Break off a chain

Break off a chain

Returns

Item
public string
# render( )

Render the Link

Render the Link

Returns

string
public boolean
# isLink( )

Get the content type

Get the content type

Returns

boolean
public boolean
# isSpecialUrl( )

Whether the link is special or not

Whether the link is special or not

Returns

boolean
public string
# getEvaluatedUrl( )

Get the evaluated URL based on the prefix settings

Get the evaluated URL based on the prefix settings

Returns

string
protected array
# getParentItems( )

Get all the parent Items

Get all the parent Items

Returns

array
An array of Items
protected array
# getParentLists( )

Get all the parent Lists

Get all the parent Lists

Returns

array
An array of Lists
protected string
# getHandlerSegment( )

Get the handler of the Menu containing this link

Get the handler of the Menu containing this link

Returns

string
protected array
# getParentItemsUrls( )

Get the URL of the parent Items

Get the URL of the parent Items

Returns

array
Properties summary
protected string $href

The link's URL

The link's URL

#
protected array $injectedProperties

An array of properties to be injected as attributes

An array of properties to be injected as attributes

# array('href')
API documentation generated by ApiGen