Example #1
0
 /**
  * Class constructor
  *
  * @param array $array Array to validate
  */
 public function __construct(array $array)
 {
     parent::__construct($array);
     // Add labels
     $this->labels($this->_labels());
     // Add rules
     foreach ($this->_rules() as $field => $rules) {
         $this->rules($field, $rules);
     }
 }