PHP 트레잇 App\Traits\MenuHandlerTrait

파일 보기 프로젝트 열기: sroutier/laravel-5.1-enterprise-starter-kit

공개 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Foundation\Application Laravel application
$menuRepository App\Repositories\MenuRepository

보호된 프로퍼티들

프로퍼티 타입 설명
$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