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
파일 보기 프로젝트 열기: noherczeg/breadcrumb 1 사용 예제들

공개 메소드들

메소드 설명
__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