* @param string $username Database username
* @param string $password Database password
*/
- public function __construct($dsn, $username, $password)
- {
+ public function __construct(
+ $dsn, $username, $password,
+ $callTypes = 'i', $msns = array()
+ ) {
+ parent::__construct($callTypes, $msns);
$this->db = new \PDO(
$dsn, $username, $password,
array(
}
$call = $arData['call'];
+ if (!$this->hasValidType($call)) {
+ return;
+ }
+ if (!$this->hasValidMsn($call)) {
+ return;
+ }
+
$this->addUnsetVars($call);
$ret = $this->stmt->execute(