Example #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;
 }
Example #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;
 }
Example #3
0
 public function __construct($field, $error_message, $min, $max)
 {
     parent::__construct($field, $error_message);
     $this->min = $min;
     $this->max = $max;
 }
Example #4
0
 public function __construct($field, $error_message, array $formats)
 {
     parent::__construct($field, $error_message);
     $this->formats = $formats;
 }
Example #5
0
 public function __construct($field1, $field2, $error_message)
 {
     parent::__construct($field1, $error_message);
     $this->field2 = $field2;
 }
Example #6
0
 public function __construct($field, array $array, $error_message)
 {
     parent::__construct($field, $error_message);
     $this->array = $array;
 }