当前位置: 首页>>代码示例>>PHP>>正文


PHP InnomaticContainer::startDomain方法代码示例

本文整理汇总了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;
 }
开发者ID:kchizi,项目名称:innomatic-legacy,代码行数:44,代码来源:ApplicationComponent.php


注:本文中的Innomatic\Core\InnomaticContainer::startDomain方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。