Exemple #1
0
 public function add_error($field, $value, $translate = TRUE)
 {
     if (!empty($translate)) {
         $value = __($value);
     }
     return parent::add_error($field, $value);
 }
		public static function check()
		{
			// Perform Valid Check
			$args = func_get_args();
			self::$object = array_shift($args);
			self::$validVars = self::$object->getVars();

			// Init Error Array
			self::$object->errors = array();
			
			// Check Object is Valid
			$isValid = true;
			foreach($args as $call)
				$isValid = Validation::doValidation($call) && $isValid;
			return $isValid;
		}