Sets up the object
public __construct ( |
||
$pdo | ||
$addressBooksTableName | string | |
$cardsTableName | string |
public function __construct() { $oPdo = self::GetPDO(); $sDbPrefix = ''; parent::__construct($oPdo, $sDbPrefix.'oc_contacts_addressbooks', $sDbPrefix.'oc_contacts_cards'); }
/** * Sets up the object */ public function __construct() { parent::__construct(\CApi::GetPDO()); $sDbPrefix = \CApi::GetSettings()->GetConf('Common/DBPrefix'); $this->cardsTableName = $sDbPrefix . Constants::T_CARDS; $this->addressBooksTableName = $sDbPrefix . Constants::T_ADDRESSBOOKS; $this->addressBookChangesTableName = $sDbPrefix . Constants::T_ADDRESSBOOKCHANGES; }
/** * Sets up the object */ public function __construct() { $oPdo = \CApi::GetPDO(); $sDbPrefix = \CApi::GetSettings()->GetConf('Common/DBPrefix'); parent::__construct($oPdo, $sDbPrefix.Constants::T_ADDRESSBOOKS, $sDbPrefix.Constants::T_CARDS); }