Property | Type | Description | |
---|---|---|---|
$config | |||
$currentSite | |||
$model |
Method | Description | |
---|---|---|
__construct ( |
SiteHandler constructor. | |
add ( array $inputs ) : |
add | |
createModel ( ) : string | Create new site model | |
getCurrentSite ( ) : |
getCurrentSite | |
getCurrentSiteKey ( ) : string | getCurrentSiteKey | |
getDefaultMenuEntityId ( null | string $siteKey = null ) : string | getDefaultMenuEntityId | |
getHomeInstanceId ( null | string $siteKey = null ) : string | getHomeInstanceId | |
getModel ( ) : string | Get site model | |
getSiteConfig ( string | null $siteKey = null ) : |
getSiteConfig | |
getSiteConfigValue ( string $key, string | null $siteKey = null ) : string | getSiteConfigValue | |
put ( |
put | |
putSiteConfig ( |
putSiteConfig | |
remove ( string $host ) : void | remove | |
setCurrentSite ( |
setCurrentSite | |
setDefaultMenuEntityId ( string $menuId, null | string $siteKey = null ) : string | setDefaultMenuEntityId | |
setHomeInstanceId ( string $instanceId, null | string $siteKey = null ) : string | setHomeInstanceId | |
setModel ( string $model ) : void | Set site model |
Method | Description | |
---|---|---|
checkUsableDomain ( string $host ) : void | checkUsableDomain |
public __construct ( |
||
$config | xpressengine config manager |
protected checkUsableDomain ( string $host ) : void | ||
$host | string | site host |
return | void |
public getCurrentSiteKey ( ) : string | ||
return | string |
public getSiteConfig ( string | null $siteKey = null ) : |
||
$siteKey | string | null | site key |
return |
public putSiteConfig ( |
||
$config | site config entity | |
return | void |
public setCurrentSite ( |
||
$site | site | |
return | void |
protected ConfigManager,Xpressengine\Config $config | ||
return |