PHP Class App\Http\Controllers\MenuController

Inheritance: extends Controller
Show file Open project: xpressengine/xpressengine Class Usage Examples

Public Methods

Method Description
create ( SiteHandler $siteHandler ) : Xpressengine\Presenter\RendererInterface create 새로운 메뉴를 생성하는 페이지
createItem ( Illuminate\Contracts\Config\Repository $config, MenuHandler $handler, ModuleHandler $moduleHandler, SiteHandler $siteHandler, string $menuId ) : Xpressengine\Presenter\RendererInterface createItem
destroy ( MenuHandler $handler, string $menuId ) : Illuminate\Http\RedirectResponse destroy
destroyItem ( MenuHandler $handler, string $menuId, string $itemId ) : Illuminate\Http\RedirectResponse destroyItem 메뉴 아이템 삭제 처리 메소드
edit ( MenuHandler $handler, string $menuId ) : Xpressengine\Presenter\RendererInterface edit
editItem ( MenuHandler $handler, ModuleHandler $modules, SiteHandler $sites, string $menuId, string $itemId ) : Xpressengine\Presenter\RendererInterface editItem 선택된 메뉴의 아이템을 view & edit 페이지 구성
editItemPermission ( MenuHandler $handler, ModuleHandler $modules, string $menuId, string $itemId ) : Xpressengine\Presenter\RendererInterface editItemPermission 선택된 메뉴의 아이템을 permission 을 수정하는 페이지 구성
editMenuPermission ( MenuHandler $handler, string $menuId ) : Xpressengine\Presenter\RendererInterface editMenuPermission
index ( MenuHandler $handler, Illuminate\Contracts\Config\Repository $config, SiteHandler $siteHandler ) : Xpressengine\Presenter\RendererInterface index
moveItem ( MenuHandler $handler ) : Xpressengine\Presenter\RendererInterface moveItem
permit ( MenuHandler $handler, string $menuId ) : Xpressengine\Presenter\RendererInterface permit
permitItem ( MenuHandler $handler, ModuleHandler $modules, string $menuId, string $itemId ) : Xpressengine\Presenter\RendererInterface permitItem
selectType ( string $menuId ) : Xpressengine\Presenter\RendererInterface selectType
setHome ( SiteHandler $siteHandler ) : Xpressengine\Presenter\RendererInterface setHome
store ( MenuHandler $handler ) : mixed store 새로운 메뉴 생성을 처리하는 메소드
storeItem ( MenuHandler $handler, string $menuId ) storeItem
update ( MenuHandler $handler, string $menuId ) : Illuminate\Http\RedirectResponse update
updateItem ( MenuHandler $handler, string $menuId, string $itemId ) : Illuminate\Http\RedirectResponse updateItem 메뉴 아이템 수정 처리 메소드
updateItemPermission ( Request $request, MenuHandler $handler, string $menuId, string $itemId ) : Illuminate\Http\RedirectResponse updateItemPermission
updateMenuPermission ( Request $request, MenuHandler $handler, string $menuId ) : Illuminate\Http\RedirectResponse updateMenuPermission

Protected Methods

Method Description
inputClassify ( array $inputs )
registerItemImage ( MenuItem $item, $name )

Method Details

create() public method

create 새로운 메뉴를 생성하는 페이지
public create ( SiteHandler $siteHandler ) : Xpressengine\Presenter\RendererInterface
$siteHandler Xpressengine\Site\SiteHandler site handler
return Xpressengine\Presenter\RendererInterface

createItem() public method

createItem
public createItem ( Illuminate\Contracts\Config\Repository $config, MenuHandler $handler, ModuleHandler $moduleHandler, SiteHandler $siteHandler, string $menuId ) : Xpressengine\Presenter\RendererInterface
$config Illuminate\Contracts\Config\Repository laravel config
$handler Xpressengine\Menu\MenuHandler menu handler
$moduleHandler Xpressengine\Menu\ModuleHandler module handler
$siteHandler Xpressengine\Site\SiteHandler site handler
$menuId string menu id
return Xpressengine\Presenter\RendererInterface

destroy() public method

destroy
public destroy ( MenuHandler $handler, string $menuId ) : Illuminate\Http\RedirectResponse
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string to delete menu entity object id
return Illuminate\Http\RedirectResponse

destroyItem() public method

destroyItem 메뉴 아이템 삭제 처리 메소드
public destroyItem ( MenuHandler $handler, string $menuId, string $itemId ) : Illuminate\Http\RedirectResponse
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string menu id
$itemId string item id
return Illuminate\Http\RedirectResponse

edit() public method

edit
public edit ( MenuHandler $handler, string $menuId ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string string menu id
return Xpressengine\Presenter\RendererInterface

editItem() public method

editItem 선택된 메뉴의 아이템을 view & edit 페이지 구성
public editItem ( MenuHandler $handler, ModuleHandler $modules, SiteHandler $sites, string $menuId, string $itemId ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
$modules Xpressengine\Menu\ModuleHandler module handler
$sites Xpressengine\Site\SiteHandler site handler
$menuId string menu id
$itemId string item id
return Xpressengine\Presenter\RendererInterface

editItemPermission() public method

editItemPermission 선택된 메뉴의 아이템을 permission 을 수정하는 페이지 구성
public editItemPermission ( MenuHandler $handler, ModuleHandler $modules, string $menuId, string $itemId ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
$modules Xpressengine\Menu\ModuleHandler module handler
$menuId string menu id
$itemId string item id
return Xpressengine\Presenter\RendererInterface

editMenuPermission() public method

editMenuPermission
public editMenuPermission ( MenuHandler $handler, string $menuId ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string menu id
return Xpressengine\Presenter\RendererInterface

index() public method

index
public index ( MenuHandler $handler, Illuminate\Contracts\Config\Repository $config, SiteHandler $siteHandler ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
$config Illuminate\Contracts\Config\Repository laravel config
$siteHandler Xpressengine\Site\SiteHandler site handler
return Xpressengine\Presenter\RendererInterface

inputClassify() protected method

protected inputClassify ( array $inputs )
$inputs array

moveItem() public method

moveItem
public moveItem ( MenuHandler $handler ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
return Xpressengine\Presenter\RendererInterface

permit() public method

permit
public permit ( MenuHandler $handler, string $menuId ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string menu id
return Xpressengine\Presenter\RendererInterface

permitItem() public method

permitItem
public permitItem ( MenuHandler $handler, ModuleHandler $modules, string $menuId, string $itemId ) : Xpressengine\Presenter\RendererInterface
$handler Xpressengine\Menu\MenuHandler menu handler
$modules Xpressengine\Menu\ModuleHandler module handler
$menuId string menu id
$itemId string item id
return Xpressengine\Presenter\RendererInterface

registerItemImage() protected method

protected registerItemImage ( MenuItem $item, $name )
$item Xpressengine\Menu\Models\MenuItem

selectType() public method

selectType
public selectType ( string $menuId ) : Xpressengine\Presenter\RendererInterface
$menuId string menu id
return Xpressengine\Presenter\RendererInterface

setHome() public method

setHome
public setHome ( SiteHandler $siteHandler ) : Xpressengine\Presenter\RendererInterface
$siteHandler Xpressengine\Site\SiteHandler site handler
return Xpressengine\Presenter\RendererInterface

store() public method

store 새로운 메뉴 생성을 처리하는 메소드
public store ( MenuHandler $handler ) : mixed
$handler Xpressengine\Menu\MenuHandler menu handler
return mixed

storeItem() public method

storeItem
public storeItem ( MenuHandler $handler, string $menuId )
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string where to store

update() public method

update
public update ( MenuHandler $handler, string $menuId ) : Illuminate\Http\RedirectResponse
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string to update menu entity object id
return Illuminate\Http\RedirectResponse

updateItem() public method

updateItem 메뉴 아이템 수정 처리 메소드
public updateItem ( MenuHandler $handler, string $menuId, string $itemId ) : Illuminate\Http\RedirectResponse
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string menu id
$itemId string item id
return Illuminate\Http\RedirectResponse

updateItemPermission() public method

updateItemPermission
public updateItemPermission ( Request $request, MenuHandler $handler, string $menuId, string $itemId ) : Illuminate\Http\RedirectResponse
$request Xpressengine\Http\Request request
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string menu id
$itemId string menu item id
return Illuminate\Http\RedirectResponse

updateMenuPermission() public method

updateMenuPermission
public updateMenuPermission ( Request $request, MenuHandler $handler, string $menuId ) : Illuminate\Http\RedirectResponse
$request Xpressengine\Http\Request request
$handler Xpressengine\Menu\MenuHandler menu handler
$menuId string menu id
return Illuminate\Http\RedirectResponse