PHP 클래스 Devise\Menus\MenusManager

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$errors errors Keeps any errors from validation
$message message Generic message for success or failure of method execution

보호된 프로퍼티들

프로퍼티 타입 설명
$Menu DvsMenu Keeps up with model for DvsMenu
$MenuItem DvsMenuItem Keeps up with model for DvsMenuItem

공개 메소드들

메소드 설명
__construct ( DvsMenu $Menu, DvsMenuItem $MenuItem, Framework $Framework ) Construct a new user manager
createMenu ( array $input ) : Menu Creates a new menu
createRules ( ) : array These are create rules for a menu
updateMenu ( $id, array $input ) : Menu Updates the active field of a Menu
updateRules ( integer $id ) : array These are the update rules for a menu given an id

보호된 메소드들

메소드 설명
createNewMenuItems ( Menu $menu, array $items, array $order ) : array($items, Create any new menu items that don't exist yet and then inject them into our items array also we update the order array to include any new menu items that we just created
syncMenuItems ( Menu $menu, $input ) : void Sync the menu items with this menu, this creates new items, reorders the positions and updates parent item ids too.

메소드 상세

__construct() 공개 메소드

Construct a new user manager
public __construct ( DvsMenu $Menu, DvsMenuItem $MenuItem, Framework $Framework )
$Menu DvsMenu
$MenuItem DvsMenuItem
$Framework Devise\Support\Framework

createMenu() 공개 메소드

Creates a new menu
public createMenu ( array $input ) : Menu
$input array
리턴 Menu || null

createNewMenuItems() 보호된 메소드

Create any new menu items that don't exist yet and then inject them into our items array also we update the order array to include any new menu items that we just created
protected createNewMenuItems ( Menu $menu, array $items, array $order ) : array($items,
$menu Menu
$items array
$order array
리턴 array($items,

createRules() 공개 메소드

These are create rules for a menu
public createRules ( ) : array
리턴 array

syncMenuItems() 보호된 메소드

Sync the menu items with this menu, this creates new items, reorders the positions and updates parent item ids too.
protected syncMenuItems ( Menu $menu, $input ) : void
$menu Menu
$input
리턴 void

updateMenu() 공개 메소드

Updates the active field of a Menu
public updateMenu ( $id, array $input ) : Menu
$id
$input array
리턴 Menu || null

updateRules() 공개 메소드

These are the update rules for a menu given an id
public updateRules ( integer $id ) : array
$id integer
리턴 array

프로퍼티 상세

$Menu 보호되어 있는 프로퍼티

Keeps up with model for DvsMenu
protected DvsMenu $Menu
리턴 DvsMenu

$MenuItem 보호되어 있는 프로퍼티

Keeps up with model for DvsMenuItem
protected DvsMenuItem $MenuItem
리턴 DvsMenuItem

$errors 공개적으로 프로퍼티

Keeps any errors from validation
public errors $errors
리턴 errors

$message 공개적으로 프로퍼티

Generic message for success or failure of method execution
public message $message
리턴 message