/** * Get the current instance of the FormErrors class * @return FormErrors - the current instance * @access public * @static */ public static function current() { if (self::$obj == NULL) { self::$obj = new FormErrors(); } return self::$obj; }