/** * @param CAdminPanel $oAdminPanel * @param string $sPath * @return CCommonModule */ public function __construct(CAdminPanel &$oAdminPanel, $sPath) { parent::__construct($oAdminPanel, $sPath); $this->oDomainsApi = CApi::Manager('domains'); $this->oUsersApi = CApi::Manager('users'); $this->oCapabilityApi = CApi::Manager('capability'); $this->oWebmailApi = CApi::Manager('webmail'); $this->oIntegratorApi = CApi::Manager('integrator'); $this->oTenantsApi = CApi::Manager('tenants'); if (\CApi::GetConf('labs.allow-social-integration', true)) { $this->aTabs[] = AP_TAB_COMMON; } $this->aTabs[] = AP_TAB_DOMAINS; $this->aTabs[] = AP_TAB_SYSTEM; $this->aQueryActions[] = 'edit'; $this->aQueryActions[] = 'list'; $this->oPopulateData = new CCommonPopulateData($this); $this->oStandardPostAction = new CCommonPostAction($this); $this->oStandardPopAction = new CCommonPopAction($this); $this->oTableAjaxAction = new CCommonAjaxAction($this); $aTabs =& $oAdminPanel->GetTabs(); if (\CApi::GetConf('labs.allow-social-integration', true)) { array_push($aTabs, array(CApi::I18N('ADMIN_PANEL/TABNAME_COMMON'), AP_TAB_COMMON)); } array_push($aTabs, array(CApi::I18N('ADMIN_PANEL/TABNAME_DOMAINS'), AP_TAB_DOMAINS), array(CApi::I18N('ADMIN_PANEL/TABNAME_SYSTEM'), AP_TAB_SYSTEM)); }
/** * @param CAdminPanel $oAdminPanel * @param string $sPath * @return CWebMailModule */ public function __construct(CAdminPanel &$oAdminPanel, $sPath) { parent::__construct($oAdminPanel, $sPath); $this->aTabs[] = AP_TAB_DOMAINS; $this->aTabs[] = AP_TAB_USERS; $this->aTabs[] = AP_TAB_SYSTEM; $this->oCapabilityApi = CApi::Manager('capability'); $this->oWebmailApi = CApi::Manager('webmail'); $this->oUsersApi = CApi::Manager('users'); $this->oLoggerApi = CApi::Manager('logger'); $this->aQueryActions[] = 'new'; $this->aQueryActions[] = 'edit'; $this->oPopulateData = new CWebMailPopulateData($this); $this->oStandardPostAction = new CWebMailPostAction($this); $this->oStandardPopAction = new CWebMailPopAction($this); $this->oStandardPopAction = new CWebMailPopAction($this); $this->oTableAjaxAction = new CWebMailAjaxAction($this); $this->oBlankAction = new CWebMailBlankAction($this); }