Exemple #1
0
 public function __construct($field, $error_message, PDO $pdo, $table, $primary_key = 'id')
 {
     parent::__construct($field, $error_message);
     $this->pdo = $pdo;
     $this->primary_key = $primary_key;
     $this->table = $table;
 }
Exemple #2
0
 public function __construct($field, $error_message, PDO $pdo, $table, $key = '')
 {
     parent::__construct($field, $error_message);
     $this->pdo = $pdo;
     $this->table = $table;
     $this->key = $key;
 }
Exemple #3
0
 public function __construct($field, $error_message, array $formats)
 {
     parent::__construct($field, $error_message);
     $this->formats = $formats;
 }