Documentation

BreadCrumbObject
in package

Description of BreadCrumbObject

Tags
author

nczirjak

Table of Contents

Properties

$data  : mixed
$i  : mixed
$length  : mixed
$str  : mixed

Methods

__construct()  : mixed
getBreadCrumb()  : string
Generate the breadcrumb navigation to the gui
buildTree()  : array<string|int, mixed>
Recursive function to iterare trough the array to get the breadcrumb elements
checkMultipleBreadCrumb()  : array<string|int, mixed>
We can have resources with multiple parents
createMultiBreadcrumb()  : mixed
Create the string from the multiple breadcrumbs
createSingleBreadcrumb()  : mixed
Single one parent breadcrumb
createTitle()  : string
Create the breadcrumb title
reOrderBreadCrumbByDate()  : array<string|int, mixed>
We have to reorder the actual roots by the avilable date

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

getBreadCrumb()

Generate the breadcrumb navigation to the gui

public getBreadCrumb() : string
Return values
string

buildTree()

Recursive function to iterare trough the array to get the breadcrumb elements

private buildTree(array<string|int, mixed> $elements[, type $parentId = 0 ]) : array<string|int, mixed>
Parameters
$elements : array<string|int, mixed>
$parentId : type = 0
Return values
array<string|int, mixed>

checkMultipleBreadCrumb()

We can have resources with multiple parents

private checkMultipleBreadCrumb() : array<string|int, mixed>
Return values
array<string|int, mixed>

createMultiBreadcrumb()

Create the string from the multiple breadcrumbs

private createMultiBreadcrumb(array<string|int, mixed> $multiple) : mixed
Parameters
$multiple : array<string|int, mixed>

createSingleBreadcrumb()

Single one parent breadcrumb

private createSingleBreadcrumb() : mixed

createTitle()

Create the breadcrumb title

private createTitle(int $k, object $v) : string
Parameters
$k : int
$v : object
Return values
string

reOrderBreadCrumbByDate()

We have to reorder the actual roots by the avilable date

private reOrderBreadCrumbByDate(array<string|int, mixed> $roots) : array<string|int, mixed>
Parameters
$roots : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results