PHP 클래스 CroogoNav

부터: 1.4
저자: Rachman Chavik ([email protected])
상속: extends Object
파일 보기 프로젝트 열기: croogo/croogo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_activeMenu Current active menu
$_defaults array _defaults
$_items array _items

공개 메소드들

메소드 설명
activeMenu ( $menu = null ) Getter/setter for activeMenu
add ( $menu, string $path, array $options = [] ) : void Add a menu item
clear ( $menu = 'sidebar' ) : void Clear all menus
getDefaults ( ) : array Gets default settings for menu items
items ( $menu = 'sidebar', $items = null ) : array Sets or returns menu data in array
menus ( )
remove ( string $path ) : void Remove a menu item

보호된 메소드들

메소드 설명
_merge ( array $firstArray, array $secondArray ) : array Merge $firstArray with $secondArray
_replace ( array &$target, string $path, array $options ) : void Replace a menu element
_setupOptions ( array &$options ) : void _setupOptions

메소드 상세

_merge() 보호된 정적인 메소드

Similar to Hash::merge, except duplicates are removed
protected static _merge ( array $firstArray, array $secondArray ) : array
$firstArray array
$secondArray array
리턴 array

_replace() 보호된 정적인 메소드

Replace a menu element
protected static _replace ( array &$target, string $path, array $options ) : void
$target array pointer to start of array
$path string path to search for in dot separated format
$options array data to replace with
리턴 void

_setupOptions() 보호된 정적인 메소드

_setupOptions
protected static _setupOptions ( array &$options ) : void
$options array
리턴 void

activeMenu() 공개 정적인 메소드

Getter/setter for activeMenu
public static activeMenu ( $menu = null )

add() 공개 정적인 메소드

Add a menu item
public static add ( $menu, string $path, array $options = [] ) : void
$path string dot separated path in the array.
$options array menu options array
리턴 void

clear() 공개 정적인 메소드

Clear all menus
public static clear ( $menu = 'sidebar' ) : void
리턴 void

getDefaults() 공개 정적인 메소드

Gets default settings for menu items
public static getDefaults ( ) : array
리턴 array

items() 공개 정적인 메소드

Sets or returns menu data in array
public static items ( $menu = 'sidebar', $items = null ) : array
$items array if empty, the current menu is returned.
리턴 array

menus() 공개 정적인 메소드

public static menus ( )

remove() 공개 정적인 메소드

Remove a menu item
public static remove ( string $path ) : void
$path string dot separated path in the array.
리턴 void

프로퍼티 상세

$_activeMenu 보호되어 있는 정적으로 프로퍼티

Current active menu
또한 보기: CroogoNav::activeMenu()
protected static $_activeMenu

$_defaults 보호되어 있는 정적으로 프로퍼티

_defaults
protected static array $_defaults
리턴 array

$_items 보호되어 있는 정적으로 프로퍼티

_items
protected static array $_items
리턴 array