Sabre\CardDAV\Backend\PDO::__construct PHP Method

__construct() public method

Sets up the object
Deprecation: We are going to remove all the tableName arguments in a future version, and rely on the public properties instead. Stop relying on them!
public __construct ( PDO $pdo, string $addressBooksTableName = 'addressbooks', string $cardsTableName = 'cards', $addressBookChangesTableName = 'addressbookchanges' )
$pdo PDO
$addressBooksTableName string
$cardsTableName string
    function __construct(\PDO $pdo, $addressBooksTableName = 'addressbooks', $cardsTableName = 'cards', $addressBookChangesTableName = 'addressbookchanges')
    {
        $this->pdo = $pdo;
        $this->addressBooksTableName = $addressBooksTableName;
        $this->cardsTableName = $cardsTableName;
        $this->addressBookChangesTableName = $addressBookChangesTableName;
    }

Usage Example

Example #1
0
    public function __construct() {

		$oPdo = self::GetPDO();
		$sDbPrefix = '';

		parent::__construct($oPdo, $sDbPrefix.'oc_contacts_addressbooks', $sDbPrefix.'oc_contacts_cards');
    }
All Usage Examples Of Sabre\CardDAV\Backend\PDO::__construct