PHP Class Xpressengine\Routing\InstanceConfig

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Support\Singleton
显示文件 Open project: xpressengine/xpressengine Class Usage Examples

Public Methods

Method Description
getInstanceId ( ) : string Get instance id
getMenuItem ( ) : MenuItem Get menu item instance
getModule ( ) : string Get module id
getTheme ( ) : string Get theme component id
getUrl ( ) : string Get first url segment
setInstanceId ( string $instanceId ) : void Set instance id
setMenuItem ( MenuItem $item ) : void Set menu item instance
setModule ( string $module ) : void Set module id
setTheme ( string $theme ) : void Set theme component id
setUrl ( string $url ) : void Set first url segment

Method Details

getInstanceId() public method

Get instance id
public getInstanceId ( ) : string
return string

getMenuItem() public method

Get menu item instance
public getMenuItem ( ) : MenuItem
return Xpressengine\Menu\Models\MenuItem

getModule() public method

Get module id
public getModule ( ) : string
return string

getTheme() public method

Get theme component id
public getTheme ( ) : string
return string

getUrl() public method

Get first url segment
public getUrl ( ) : string
return string

setInstanceId() public method

Set instance id
public setInstanceId ( string $instanceId ) : void
$instanceId string instance id
return void

setMenuItem() public method

Set menu item instance
public setMenuItem ( MenuItem $item ) : void
$item Xpressengine\Menu\Models\MenuItem menu item instance
return void

setModule() public method

Set module id
public setModule ( string $module ) : void
$module string module id
return void

setTheme() public method

Set theme component id
public setTheme ( string $theme ) : void
$theme string theme of instanceRoute
return void

setUrl() public method

Set first url segment
public setUrl ( string $url ) : void
$url string url of instanceRoute
return void