Property | Type | Description | |
---|---|---|---|
$keygen | Keygen instance | ||
$model | string | Model class |
Method | Description | |
---|---|---|
__construct ( |
EloquentRepository constructor. | |
all ( string $siteKey, array $with = [] ) : |
Get all menu | |
createItemModel ( |
Create new menu item model | |
createModel ( ) : |
Create new menu model | |
delete ( |
Delete menu | |
deleteItem ( |
Delete menu item | |
fetchInItem ( array $ids, array $with = [] ) : |
Get menu items by identifier list | |
find ( string $id, array $with = [] ) : |
Find menu | |
findItem ( string $id, array $with = [] ) : |
Find a menu item | |
getModel ( ) : string | Get menu model | |
insert ( |
Insert menu | |
insertItem ( |
Insert menu item | |
setModel ( string $model ) : void | Set menu model | |
update ( |
Update menu | |
updateItem ( |
Update menu item |
Method | Description | |
---|---|---|
generateNewId ( ) : string | Generate new key |
public __construct ( |
||
$keygen | Keygen instance |
public createItemModel ( |
||
$menu | menu instance | |
return |
public createModel ( ) : |
||
return |
public deleteItem ( |
||
$item | menu item instance | |
return | boolean |
public fetchInItem ( array $ids, array $with = [] ) : |
||
$ids | array | menu item identifier |
$with | array | relation |
return |
protected generateNewId ( ) : string | ||
return | string |
public insert ( |
||
$menu | menu instance | |
return |
public insertItem ( |
||
$item | menu item instance | |
return |
public update ( |
||
$menu | menu instance | |
return |
public updateItem ( |
||
$item | menu item instance | |
return |
protected Keygen,Xpressengine\Keygen $keygen | ||
return |