PHP Класс Noherczeg\Breadcrumb\Builders\Builder

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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