PHP Трейт App\Traits\MenuHandlerTrait

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$app Illuminate\Foundation\Application Laravel application
$menuRepository app\repositories\MenuRepository

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

Свойство Тип Описание
$auth Guard The Guard implementation.

Открытые методы

Метод Описание
__construct ( Illuminate\Foundation\Application $app ) : void Create a new instance.
generateUrl ( Menu $menu ) : mixed | null | string
getCurrentUrl ( ) : null
getLeafMenuItem ( null $leaf = null ) : mixed | null
getMenuBranch ( $leaf = null )
getMenuItem ( $input ) : mixed
getVariables ( Menu $menu, array $variables = [] ) : array
renderBreadcrumbTrail ( null $leaf = null, string $topNode = 'root', boolean $includeTopNode = false ) : Illuminate\View\View
renderBreadcrumbTrailItem ( Menu $item, array $variables = [] ) : mixed | string
renderMenu ( string $topNode = 'root', boolean $includeTopNode = false ) : Illuminate\View\View Builds a representation of the menu for the defined framework and return it starting at the $topNode.
renderMenuItem ( Menu $item, array $variables = [], $menuBranch = [] ) : string
replaceVars ( $string, $vars ) : mixed

Описание методов

__construct() публичный метод

Create a new instance.
public __construct ( Illuminate\Foundation\Application $app ) : void
$app Illuminate\Foundation\Application
Результат void

generateUrl() публичный метод

public generateUrl ( Menu $menu ) : mixed | null | string
$menu app\models\Menu
Результат mixed | null | string

getCurrentUrl() публичный метод

public getCurrentUrl ( ) : null
Результат null

getLeafMenuItem() публичный метод

public getLeafMenuItem ( null $leaf = null ) : mixed | null
$leaf null
Результат mixed | null

getMenuBranch() публичный метод

public getMenuBranch ( $leaf = null )

getMenuItem() публичный метод

public getMenuItem ( $input ) : mixed
$input
Результат mixed

getVariables() публичный метод

public getVariables ( Menu $menu, array $variables = [] ) : array
$menu app\models\Menu
$variables array
Результат array

renderBreadcrumbTrail() публичный метод

public renderBreadcrumbTrail ( null $leaf = null, string $topNode = 'root', boolean $includeTopNode = false ) : Illuminate\View\View
$leaf null
$topNode string
$includeTopNode boolean
Результат Illuminate\View\View

renderBreadcrumbTrailItem() публичный метод

public renderBreadcrumbTrailItem ( Menu $item, array $variables = [] ) : mixed | string
$item app\models\Menu
$variables array
Результат mixed | string

renderMenu() публичный метод

Builds a representation of the menu for the defined framework and return it starting at the $topNode.
public renderMenu ( string $topNode = 'root', boolean $includeTopNode = false ) : Illuminate\View\View
$topNode string can be an instance of a Menu object, it's id or name. It is set to 'root' by default.
$includeTopNode boolean indicates whether to include the root node itself or not. It's default value is 'false'.
Результат Illuminate\View\View

renderMenuItem() публичный метод

public renderMenuItem ( Menu $item, array $variables = [], $menuBranch = [] ) : string
$item app\models\Menu
$variables array
Результат string

replaceVars() публичный метод

public replaceVars ( $string, $vars ) : mixed
$string
$vars
Результат mixed

Описание свойств

$app публичное свойство

Laravel application
public Application,Illuminate\Foundation $app
Результат Illuminate\Foundation\Application

$auth защищенное свойство

The Guard implementation.
protected Guard $auth
Результат Guard

$menuRepository публичное свойство

public MenuRepository,App\Repositories $menuRepository
Результат app\repositories\MenuRepository