프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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, |
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. |
public __construct ( DvsMenu $Menu, DvsMenuItem $MenuItem, |
||
$Menu | DvsMenu | |
$MenuItem | DvsMenuItem | |
$Framework |
public createMenu ( array $input ) : Menu | ||
$input | array | |
리턴 | Menu | || null |
protected createNewMenuItems ( Menu $menu, array $items, array $order ) : array($items, | ||
$menu | Menu | |
$items | array | |
$order | array | |
리턴 | array($items, |
protected syncMenuItems ( Menu $menu, $input ) : void | ||
$menu | Menu | |
$input | ||
리턴 | void |
public updateMenu ( $id, array $input ) : Menu | ||
$id | ||
$input | array | |
리턴 | Menu | || null |
public updateRules ( integer $id ) : array | ||
$id | integer | |
리턴 | array |
protected DvsMenuItem $MenuItem | ||
리턴 | DvsMenuItem |