Example #1
0
 /**
  * @param CApiGlobalManager &$oManager
  */
 public function __construct(CApiGlobalManager &$oManager)
 {
     parent::__construct('sabredav', $oManager);
     $this->Account = null;
     $this->aAddressBooksCache = array();
     $this->aContactItemsCache = array();
     $this->aGroupItemsCache = array();
     $this->ContactsCache = array();
     $this->GroupsCache = array();
     $this->AccountsCache = array();
     $this->ApiUsersManager = CApi::Manager('users');
 }
Example #2
0
 /**
  * @param CApiGlobalManager &$oManager
  */
 public function __construct(CApiGlobalManager &$oManager)
 {
     parent::__construct('carddav', $oManager);
     CApi::Inc('common.dav.client');
     $this->Dav = null;
     $this->Settings = CApi::GetSettings();
     $this->Pdo = CApi::GetPDO();
     $this->User = null;
     $this->Account = null;
     $this->Connected = false;
     $this->aAddressBooksCache = array();
     $this->aGroupItemsCache = array();
     $this->ContactsCache = array();
     $this->GroupsCache = array();
     $this->DbPrefix = $this->Settings->GetConf('Common/DBPrefix');
     $this->ApiUsersManager = CApi::Manager('users');
     $this->ApiDavManager = CApi::Manager('dav');
 }
Example #3
0
 /**
  * @param CApiGlobalManager &$oManager
  */
 public function __construct(CApiGlobalManager &$oManager)
 {
     parent::__construct('db', $oManager);
     $this->oConnection =& $oManager->GetConnection();
     $this->oCommandCreator =& $oManager->GetCommandCreator($this, array(EDbType::MySQL => 'CApiMaincontactsCommandCreatorMySQL', EDbType::PostgreSQL => 'CApiMaincontactsCommandCreatorPostgreSQL'));
 }
Example #4
0
 /**
  * @param CApiGlobalManager &$oManager
  */
 public function __construct(CApiGlobalManager &$oManager)
 {
     parent::__construct('nodb', $oManager);
 }