src/SmartFactory/MessageManager.php
public function getErrorElement()
    {
        if (empty(self::$session_vars["error_element"])) {
            return "";
        }
        
        $felm = self::$session_vars["error_element"];
        
        unset(self::$session_vars["error_element"]);
        
        return $felm;
    }
public function getErrorElement()
    {
        if (empty(self::$session_vars["error_element"])) {
            return "";
        }
        
        $felm = self::$session_vars["error_element"];
        
        unset(self::$session_vars["error_element"]);
        
        return $felm;
    }
public function getErrorElement ( ) { if ( empty ( self :: $ session_vars [ "error_element" ] ) ) { return "" ; } $ felm = self :: $ session_vars [ "error_element" ] ; unset ( self :: $ session_vars [ "error_element" ] ) ; return $ felm ; }
Returns the field to be highlighted.

When this method is called, it is assumed that element will be highlighted. Thus,
the stored element is cleared to avoid highlighting of the same element twice.

@return string
Returns the ID of the field to be highlighted.

@see setErrorElement()

@author Oleg Schildt
Returns the field to be highlighted .