Exemplo n.º 1
0
 /**
  * @param CApiGlobalManager $oManager
  */
 public function __construct(CApiGlobalManager &$oManager)
 {
     parent::__construct('ldap', $oManager);
     $this->sContactObjectClass = strtolower(CApi::GetConf('contacts.ldap.contact-object-class', 'pabPerson'));
     $this->sGroupObjectClass = strtolower(CApi::GetConf('contacts.ldap.group-object-class', 'pabGroup'));
     $this->sEmailFieldName = strtolower(CApi::GetConf('contacts.ldap.email-field-name', 'mail'));
     $this->sContactUidFieldName = strtolower(CApi::GetConf('contacts.ldap.contact-uid-field-name', 'un'));
     $this->sGroupUidFieldName = strtolower(CApi::GetConf('contacts.ldap.group-uid-field-name', 'un'));
     $this->sContactNameFieldName = strtolower(CApi::GetConf('contacts.ldap.contact-name-field-name', 'cn'));
     $this->sGroupNameFieldName = strtolower(CApi::GetConf('contacts.ldap.group-name-field-name', 'cn'));
 }
Exemplo n.º 2
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');
 }
Exemplo n.º 3
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');
 }
Exemplo n.º 4
0
 /**
  * @param CApiGlobalManager &$oManager
  */
 public function __construct(CApiGlobalManager &$oManager)
 {
     parent::__construct('nodb', $oManager);
 }
Exemplo n.º 5
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 => 'CApiContactsmainCommandCreatorMySQL', EDbType::PostgreSQL => 'CApiContactsmainCommandCreatorPostgreSQL'));
 }