public function getAttribute()
    {
        // Determine Attribute Type:
        
        if (is_array($this->attribute)) {
            
            // Answer Conditional Attribute:
            
            foreach ($this->attribute as $name => $cond) {
                
                list($attr, $val) = explode('=', $cond);
                
                if ($this->$attr == $val) {
                    return $name;
                }
                
            }
            
        } elseif ($this->attribute) {
            
            // Using Dynamic Attribute? (i.e. $type)
            
            if (strpos($this->attribute, '$') === 0) {
                
                $attr = substr($this->attribute, 1);
                
                return $this->$attr;
                
            }
            
            // Answer String Attribute:
            
            return $this->attribute;
            
        }
        
        // Answer Default Attribute:
        
        return $this->backend()->getDefaultAttribute();
    }
public function getAttribute()
    {
        // Determine Attribute Type:
        
        if (is_array($this->attribute)) {
            
            // Answer Conditional Attribute:
            
            foreach ($this->attribute as $name => $cond) {
                
                list($attr, $val) = explode('=', $cond);
                
                if ($this->$attr == $val) {
                    return $name;
                }
                
            }
            
        } elseif ($this->attribute) {
            
            // Using Dynamic Attribute? (i.e. $type)
            
            if (strpos($this->attribute, '$') === 0) {
                
                $attr = substr($this->attribute, 1);
                
                return $this->$attr;
                
            }
            
            // Answer String Attribute:
            
            return $this->attribute;
            
        }
        
        // Answer Default Attribute:
        
        return $this->backend()->getDefaultAttribute();
    }
public function getAttribute ( ) { // Determine Attribute Type: if ( is_array ( $ this -> attribute ) ) { // Answer Conditional Attribute: foreach ( $ this -> attribute as $ name => $ cond ) { list ( $ attr , $ val ) = explode ( '=' , $ cond ) ; if ( $ this -> $ attr == $ val ) { return $ name ; } } } elseif ( $ this -> attribute ) { // Using Dynamic Attribute? (i.e. $type) if ( strpos ( $ this -> attribute , '$' ) === 0 ) { $ attr = substr ( $ this -> attribute , 1 ) ; return $ this -> $ attr ; } // Answer String Attribute: return $ this -> attribute ; } // Answer Default Attribute: return $ this -> backend ( ) -> getDefaultAttribute ( ) ; }
Answers the name used by the rule for the form field attribute.

@return string
Answers the name used by the rule for the form field attribute .