public function __construct($con = null) { parent::connect($con, [self::ATTR_STATEMENT_CLASS => ['\\' . __NAMESPACE__ . '\\' . self::STM_CLASS]]); }
/** * Create class instance, connect to database, and set cryptographic options * @param mixed $con Database credentials object or file * @param array $options Options array for passsword hashing */ public function __construct($con = self::DEFAULT_CON, array $options = array()) { parent::connect($con, [\PDO::ATTR_STATEMENT_CLASS => ['\\' . __NAMESPACE__ . '\\' . self::STM_CLASS]]); $this->_options = array_merge($this->_options, $options); }