Property | Type | Description | |
---|---|---|---|
$errors | errors | Keeps any errors from validation | |
$message | message | Generic message for success or failure of method execution |
Property | Type | Description | |
---|---|---|---|
$Menu | DvsMenu | Keeps up with model for DvsMenu | |
$MenuItem | DvsMenuItem | Keeps up with model for DvsMenuItem |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
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 | |
return | Menu | || null |
protected createNewMenuItems ( Menu $menu, array $items, array $order ) : array($items, | ||
$menu | Menu | |
$items | array | |
$order | array | |
return | array($items, |
public createRules ( ) : array | ||
return | array |
protected syncMenuItems ( Menu $menu, $input ) : void | ||
$menu | Menu | |
$input | ||
return | void |
public updateMenu ( $id, array $input ) : Menu | ||
$id | ||
$input | array | |
return | Menu | || null |
public updateRules ( integer $id ) : array | ||
$id | integer | |
return | array |
protected DvsMenuItem $MenuItem | ||
return | DvsMenuItem |