PHP Class Noherczeg\Breadcrumb\Builders\Builder

Afficher le fichier Open project: noherczeg/breadcrumb Class Usage Examples

Protected Properties

Свойство Type Description
$base_url string
$casing string
$config Noherczeg\Breadcrumb\Config
$segments Noherczeg\Breadcrumb\Segment[]
$separator string

Méthodes publiques

Méthode Description
__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.

Private Methods

Méthode Description
allowedToSetLink ( $key, Segment $segment )
getLastKey ( )
initCurrentUrl ( )
isBaseElement ( Segment $segment, $position )
setLink ( $key, Segment $segment, $position )
setNextCurrentURL ( Segment $segment, $different_links )

Method Details

__construct() public méthode

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

build() abstract public méthode

abstract public build ( )

casing() public méthode

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

properties() public méthode

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
Résultat string Chained properties

Property Details

$base_url protected_oe property

protected string $base_url
Résultat string

$casing protected_oe property

protected string $casing
Résultat string

$config protected_oe property

protected Config,Noherczeg\Breadcrumb $config
Résultat Noherczeg\Breadcrumb\Config

$segments protected_oe property

protected Segment[],Noherczeg\Breadcrumb $segments
Résultat Noherczeg\Breadcrumb\Segment[]

$separator protected_oe property

protected string $separator
Résultat string