PHP 클래스 Xpressengine\Menu\Repositories\AbstractDecorator

저자: XE Developers ([email protected])
상속: implements Xpressengine\Menu\MenuRepository
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$repo Xpressengine\Menu\MenuRepository MenuRepository instance

공개 메소드들

메소드 설명
__construct ( Xpressengine\Menu\MenuRepository $repo ) AbstractDecorator constructor.
all ( string $siteKey, array $with = [] ) : Menu[] Get all menu
createItemModel ( Menu $menu = null ) : MenuItem Create new menu item model
createModel ( ) : Menu Create new menu model
delete ( Menu $menu ) : boolean Delete menu
deleteItem ( MenuItem $item ) : boolean Delete menu item
fetchInItem ( array $ids, array $with = [] ) : MenuItem[] Get menu items by identifier list
find ( string $id, array $with = [] ) : Menu Find a menu
findItem ( string $id, array $with = [] ) : MenuItem Find a menu item
insert ( Menu $menu ) : Menu Insert menu
insertItem ( MenuItem $item ) : MenuItem Insert menu item
update ( Menu $menu ) : Menu Update menu
updateItem ( MenuItem $item ) : MenuItem Update menu item

메소드 상세

__construct() 공개 메소드

AbstractDecorator constructor.
public __construct ( Xpressengine\Menu\MenuRepository $repo )
$repo Xpressengine\Menu\MenuRepository MenuRepository instance

all() 공개 메소드

Get all menu
public all ( string $siteKey, array $with = [] ) : Menu[]
$siteKey string site key
$with array relation
리턴 Xpressengine\Menu\Models\Menu[]

createItemModel() 공개 메소드

Create new menu item model
public createItemModel ( Menu $menu = null ) : MenuItem
$menu Xpressengine\Menu\Models\Menu menu instance
리턴 Xpressengine\Menu\Models\MenuItem

createModel() 공개 메소드

Create new menu model
public createModel ( ) : Menu
리턴 Xpressengine\Menu\Models\Menu

delete() 공개 메소드

Delete menu
public delete ( Menu $menu ) : boolean
$menu Xpressengine\Menu\Models\Menu menu instance
리턴 boolean

deleteItem() 공개 메소드

Delete menu item
public deleteItem ( MenuItem $item ) : boolean
$item Xpressengine\Menu\Models\MenuItem menu item instance
리턴 boolean

fetchInItem() 공개 메소드

Get menu items by identifier list
public fetchInItem ( array $ids, array $with = [] ) : MenuItem[]
$ids array menu item identifier
$with array relation
리턴 Xpressengine\Menu\Models\MenuItem[]

find() 공개 메소드

Find a menu
public find ( string $id, array $with = [] ) : Menu
$id string menu identifier
$with array relation
리턴 Xpressengine\Menu\Models\Menu

findItem() 공개 메소드

Find a menu item
public findItem ( string $id, array $with = [] ) : MenuItem
$id string menu item identifier
$with array relation
리턴 Xpressengine\Menu\Models\MenuItem

insert() 공개 메소드

Insert menu
public insert ( Menu $menu ) : Menu
$menu Xpressengine\Menu\Models\Menu menu instance
리턴 Xpressengine\Menu\Models\Menu

insertItem() 공개 메소드

Insert menu item
public insertItem ( MenuItem $item ) : MenuItem
$item Xpressengine\Menu\Models\MenuItem menu item instance
리턴 Xpressengine\Menu\Models\MenuItem

update() 공개 메소드

Update menu
public update ( Menu $menu ) : Menu
$menu Xpressengine\Menu\Models\Menu menu instance
리턴 Xpressengine\Menu\Models\Menu

updateItem() 공개 메소드

Update menu item
public updateItem ( MenuItem $item ) : MenuItem
$item Xpressengine\Menu\Models\MenuItem menu item instance
리턴 Xpressengine\Menu\Models\MenuItem

프로퍼티 상세

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

MenuRepository instance
protected MenuRepository,Xpressengine\Menu $repo
리턴 Xpressengine\Menu\MenuRepository