/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('contacts', $oManager, $sForcedStorage); $this->oApiGContactsManager = CApi::Manager('gcontacts'); $this->oApiContactsMainManager = CApi::Manager('contactsmain'); $this->oApiContactsMainManagerDAV = CApi::Manager('contactsmain', 'sabredav'); //$this->oApiContactsMainManagerDAV = CApi::Manager('contactsmain', 'carddav'); }
/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('logger', $oManager); $sS = CApi::GetConf('log.custom-full-path', ''); $sPrePath = empty($sS) ? CApi::DataPath() . '/logs/' : rtrim(trim($sS), '\\/') . '/'; $this->sLogFileName = CApi::GetConf('log.log-file', 'log.txt'); $this->sLogFile = $sPrePath . $this->sLogFileName; $this->sCurrentUserLogFileName = CApi::GetConf('log.event-file', 'event.txt'); $this->sCurrentUserLogFile = $sPrePath . $this->sCurrentUserLogFileName; }
/** * @param CApiGlobalManager &$oManager * @param string $sForcedStorage */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('ios', $oManager); /* * @var $oApiUsersManager CApiUsersManager */ $this->oApiUsersManager = CApi::Manager('users'); /* * @var $oApiDavManager CApiDavManager */ $this->oApiDavManager = CApi::Manager('dav'); }
/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('sieve', $oManager); CApi::Inc('common.net.protocols.sieve'); $this->inc('classes.enum'); $this->inc('classes.filter'); $this->aSieves = array(); $this->sGeneralPassword = ''; $this->sSieveFileName = CApi::GetConf('sieve.config.file', 'sieve'); $this->sSieveFolderCharset = CApi::GetConf('sieve.config.filters-folder-charset', 'utf-8'); $this->bSectionsParsed = false; $this->aSectionsData = array(); $this->aSectionsOrders = array('forward', 'autoresponder', 'filters'); }
/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('voice', $oManager); $this->oApiContactsManager = CApi::Manager('contactsmain'); $this->oApiGContactsManager = CApi::Manager('gcontacts'); }
/** * @param string $sManagerName * @param CApiGlobalManager &$oManager * @param string $sForcedStorage = '' * @return AApiManager */ public function __construct($sManagerName, CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct($sManagerName, $oManager); $this->oStorage = null; $this->sStorageName = !empty($sForcedStorage) ? strtolower(trim($sForcedStorage)) : strtolower($oManager->GetStorageByType($sManagerName)); CApi::Inc('common.managers.' . $this->GetManagerName() . '.storages.default'); if (CApi::Inc('common.managers.' . $this->GetManagerName() . '.storages.' . $this->GetStorageName() . '.storage', false)) { $sClassName = 'CApi' . ucfirst($this->GetManagerName()) . ucfirst($this->GetStorageName()) . 'Storage'; $this->oStorage = new $sClassName($oManager); } else { $sClassName = 'CApi' . ucfirst($this->GetManagerName()) . 'Storage'; $this->oStorage = new $sClassName($this->sStorageName, $oManager); } }
/** * Creates a new instance of the object. * * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager) { $this->bCache = false; parent::__construct('integrator', $oManager); }
/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager) { parent::__construct('capability', $oManager); }
/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('licensing', $oManager); $this->inc('classes.enc'); $this->inc('classes.inc', false); }
/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('capability', $oManager); }
/** * @param CApiGlobalManager &$oManager */ public function __construct(CApiGlobalManager &$oManager, $sForcedStorage = '') { parent::__construct('dav', $oManager); CApi::Inc('common.dav.client'); $this->aDavClients = array(); }
/** * @param string $sFileName * @return void */ public function inc($sFileName) { static $aCache = array(); $sFileFullPath = ''; $sFileName = preg_replace('/[^a-z0-9\\._\\-]/', '', strtolower($sFileName)); $sFileName = preg_replace('/[\\.]+/', '.', $sFileName); $sFileName = str_replace('.', '/', $sFileName); if (isset($aCache[$sFileName])) { return true; } else { $oModule = $this->oManager->GetModule(); if (isset($oModule)) { $sFileFullPath = $this->getPath() . '/' . $sFileName . '.php'; if (@file_exists($sFileFullPath)) { $aCache[$sFileName] = true; include_once $sFileFullPath; return true; } } else { return CApi::StorageInc($this->GetManagerName(), $this->GetStorageName(), $sFileName); } } if ($bDoExitOnError) { exit('FILE NOT EXISTS = ' . $sFileFullPath . ' File: ' . __FILE__ . ' Line: ' . __LINE__ . ' Method: ' . __METHOD__); } return false; }