public function field($fieldnames) {

		$fieldnames = func_get_args();

		foreach($fieldnames as $fieldname) {

			if(false === is_string($fieldname)) {
				return trigger_error(sprintf('All fieldnames used in "%s"() must be of the type string, "%s" given', __METHOD__, gettype($fieldname)), E_USER_ERROR);
			}
		}

		$this -> setFieldnames($fieldnames);

		return $this;
	}
public function field($fieldnames) {

		$fieldnames = func_get_args();

		foreach($fieldnames as $fieldname) {

			if(false === is_string($fieldname)) {
				return trigger_error(sprintf('All fieldnames used in "%s"() must be of the type string, "%s" given', __METHOD__, gettype($fieldname)), E_USER_ERROR);
			}
		}

		$this -> setFieldnames($fieldnames);

		return $this;
	}
public function field ( $ fieldnames ) { $ fieldnames = func_get_args ( ) ; foreach ( $ fieldnames as $ fieldname ) { if ( false === is_string ( $ fieldname ) ) { return trigger_error ( sprintf ( 'All fieldnames used in "%s"() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ fieldname ) ) , E_USER_ERROR ) ; } } $ this -> setFieldnames ( $ fieldnames ) ; return $ this ; }
Add one or multiple validation rules to one or multiple fields
@param string|array $fieldnames
@return sFire\Validator\Validator
Add one or multiple validation rules to one or multiple fields