PHP 클래스 Noherczeg\Breadcrumb\Builders\Builder

파일 보기 프로젝트 열기: noherczeg/breadcrumb 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$base_url string
$casing string
$config Noherczeg\Breadcrumb\Config
$segments Noherczeg\Breadcrumb\Segment[]
$separator string

공개 메소드들

메소드 설명
__construct ( array $segments = [], $base_url = '', $config = [] )
build ( )
casing ( String $string, String $to = '' ) : String casing: Provides casing operation to the class.
link ( boolean $skip_last = true, boolean $different_links = false ) : array link: Inserts proper URLs to each Segment which is IN THE BUILDER's list.
properties ( array $properties = [] ) : string properties: Transforms an array of properties to a chain of html property key + value pairs.

비공개 메소드들

메소드 설명
allowedToSetLink ( $key, Segment $segment )
getLastKey ( )
initCurrentUrl ( )
isBaseElement ( Segment $segment, $position )
setLink ( $key, Segment $segment, $position )
setNextCurrentURL ( Segment $segment, $different_links )

메소드 상세

__construct() 공개 메소드

public __construct ( array $segments = [], $base_url = '', $config = [] )
$segments array

build() 추상적인 공개 메소드

abstract public build ( )

casing() 공개 메소드

casing: Provides casing operation to the class.
public casing ( String $string, String $to = '' ) : String
$string String String to format
$to String Name of casing
리턴 String

properties() 공개 메소드

properties: Transforms an array of properties to a chain of html property key + value pairs.
public properties ( array $properties = [] ) : string
$properties array Array of properties
리턴 string Chained properties

프로퍼티 상세

$base_url 보호되어 있는 프로퍼티

protected string $base_url
리턴 string

$casing 보호되어 있는 프로퍼티

protected string $casing
리턴 string

$config 보호되어 있는 프로퍼티

protected Config,Noherczeg\Breadcrumb $config
리턴 Noherczeg\Breadcrumb\Config

$segments 보호되어 있는 프로퍼티

protected Segment[],Noherczeg\Breadcrumb $segments
리턴 Noherczeg\Breadcrumb\Segment[]

$separator 보호되어 있는 프로퍼티

protected string $separator
리턴 string