lib/Validation/Validation.php
public function add_rule($name, $value, $rules){
        $this->fieldsState[$name] = array(
			'name'			=> $name,
			'value'			=> $value,
			'rules'			=> explode('|', $rules),
                        'valid'                 => TRUE,
                        'message'               => NULL
        );
    }
public function add_rule($name, $value, $rules){
        $this->fieldsState[$name] = array(
			'name'			=> $name,
			'value'			=> $value,
			'rules'			=> explode('|', $rules),
                        'valid'                 => TRUE,
                        'message'               => NULL
        );
    }
public function add_rule ( $ name , $ value , $ rules ) { $ this -> fieldsState [ $ name ] = array ( 'name' => $ name , 'value' => $ value , 'rules' => explode ( '|' , $ rules ) , 'valid' => TRUE , 'message' => NULL ) ; }
Agregar una regla de validacion que luego sera validada
@param string $name
@param type $value
@param array[string] $rules
Agregar una regla de validacion que luego sera validada