本文整理汇总了PHP中Innomatic\Core\InnomaticContainer::startDomain方法的典型用法代码示例。如果您正苦于以下问题:PHP InnomaticContainer::startDomain方法的具体用法?PHP InnomaticContainer::startDomain怎么用?PHP InnomaticContainer::startDomain使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Innomatic\Core\InnomaticContainer
的用法示例。
在下文中一共展示了InnomaticContainer::startDomain方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: disable
/**
* Disables the component to the given domain.
*
* @param string $domainid Identifier name of the domain
* @param array $params Parameters in the component definition
* @access public
* @return bool True when the component has been successfully disabled from the domain
*/
public function disable($domainid, $params)
{
$result = false;
$override = self::OVERRIDE_NONE;
if (isset($params['override'])) {
switch ($params['override']) {
case self::OVERRIDE_DOMAIN:
case self::OVERRIDE_GLOBAL:
$override = $params['override'];
break;
}
}
if ($this->getIsDomain() or isset($params['override']) and $params['override'] == self::OVERRIDE_DOMAIN) {
if ($this->applicationsComponentsRegister->checkRegisterComponent($this->getType(), $this->name, $domainid, $this->appname, $override) != false) {
if ($this->applicationsComponentsRegister->checkRegisterComponent($this->getType(), $this->name, $domainid, $this->appname, $override, true) == false) {
if (strlen($domainid)) {
// Start domain
$this->container->startDomain(\Innomatic\Domain\Domain::getTenantNameById($domainid));
// Set the domain dataaccess for the component
$this->domainda = $this->container->getCurrentDomain()->getDataAccess();
}
$result = $this->doDisableDomainAction($domainid, $params);
$this->applicationsComponentsRegister->unregisterComponent($this->appname, $this->getType(), $this->name, $domainid, $override);
if (strlen($domainid)) {
// Stop domain
$this->container->stopDomain();
}
} else {
$result = $this->applicationsComponentsRegister->unregisterComponent($this->appname, $this->getType(), $this->name, $domainid, $override);
}
}
} else {
$result = true;
}
return $result;
}