PHP Класс Noherczeg\Breadcrumb\Segment

Class that represents a single URI segment, and add functionality to it. This is used and manipulated by Breadcrumb. A key building block
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( String $raw_insert, boolean $base = false, boolean $disabled = false ) Constructor
disable ( ) Disables this Segment.
enable ( ) Enables this Segment.
get ( string $property_name ) : string get: Mediocre getter which returns a single requested property.
is_base ( ) : boolean is_base: Tells if the Segment is a base Segment or not.
setLink ( string $link ) setLink: Basic setter method.
setTranslated ( string $value ) setTranslated: Basic setter method.
vars ( ) : array vars: alias method.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( String $raw_insert, boolean $base = false, boolean $disabled = false )
$raw_insert String The value/name of the segment in the URI
$base boolean If this points to the base url of your site, then set to true, otherwise false
$disabled boolean

disable() публичный Метод

Basically makes the builder process ignore the link generation if it is disabled.
public disable ( )

enable() публичный Метод

The exact opposite of the above
public enable ( )

get() публичный Метод

get: Mediocre getter which returns a single requested property.
public get ( string $property_name ) : string
$property_name string
Результат string

is_base() публичный Метод

is_base: Tells if the Segment is a base Segment or not.
public is_base ( ) : boolean
Результат boolean

setTranslated() публичный Метод

setTranslated: Basic setter method.
public setTranslated ( string $value )
$value string

vars() публичный Метод

vars: alias method.
public vars ( ) : array
Результат array