public function getMessage($fieldname) {

		if(false === is_string($fieldname)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($fieldname)), E_USER_ERROR);
		}

		$instance 	= $this -> getMessageInstance();
		$short 		= $instance :: getErrors();
		$full 		= $instance :: getErrors(true);

		if(true === isset($short[$fieldname])) {
			return $short[$fieldname];
		}

		if(true === isset($full[$fieldname])) {
			return $full[$fieldname];
		}
	}
public function getMessage($fieldname) {

		if(false === is_string($fieldname)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($fieldname)), E_USER_ERROR);
		}

		$instance 	= $this -> getMessageInstance();
		$short 		= $instance :: getErrors();
		$full 		= $instance :: getErrors(true);

		if(true === isset($short[$fieldname])) {
			return $short[$fieldname];
		}

		if(true === isset($full[$fieldname])) {
			return $full[$fieldname];
		}
	}
public function getMessage ( $ fieldname ) { if ( false === is_string ( $ fieldname ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ fieldname ) ) , E_USER_ERROR ) ; } $ instance = $ this -> getMessageInstance ( ) ; $ short = $ instance :: getErrors ( ) ; $ full = $ instance :: getErrors ( true ) ; if ( true === isset ( $ short [ $ fieldname ] ) ) { return $ short [ $ fieldname ] ; } if ( true === isset ( $ full [ $ fieldname ] ) ) { return $ full [ $ fieldname ] ; } }
Returns messages by fieldname
@param string $fiedlname
@return string
Returns messages by fieldname