src/classes/CCValidator.php
protected function get_error_message_params( $key, $params )
	{
		// do we have a label to replace the key?
		if ( isset( $this->labels[$key] ) )
		{
			$field = $this->labels[$key];
		} else {
			$field = ucfirst( str_replace( array( '_', '-' ), ' ', $key ) );
		}

		return array_merge( array( 'field' => $field ), $params );
	}
protected function get_error_message_params( $key, $params )
	{
		// do we have a label to replace the key?
		if ( isset( $this->labels[$key] ) )
		{
			$field = $this->labels[$key];
		} else {
			$field = ucfirst( str_replace( array( '_', '-' ), ' ', $key ) );
		}

		return array_merge( array( 'field' => $field ), $params );
	}
protected function get_error_message_params ( $ key , $ params ) { // do we have a label to replace the key? if ( isset ( $ this -> labels [ $ key ] ) ) { $ field = $ this -> labels [ $ key ] ; } else { $ field = ucfirst ( str_replace ( array ( '_' , '-' ) , ' ' , $ key ) ) ; } return array_merge ( array ( 'field' => $ field ) , $ params ) ; }
Get the parameter array for the error messages

@param string 		$key
@param array 			$params
@return array
Get the parameter array for the error messages