/** * Used in the UI to get vaidation text for given Form inputs * * @param string $input_key The form input name * @return string The validation text. */ public static function validation($input_key) { if (isset(self::$validation_results[$input_key]) && !empty(self::$validation_results[$input_key])) { echo "<span class=\"error\">" . u::h(self::$validation_results[$input_key], false) . "</span>"; } }