framework/db/BaseActiveRecord.php
public function getAttribute($name)
    {
        return isset($this->_attributes[$name]) ? $this->_attributes[$name] : null;
    }
public function getAttribute($name)
    {
        return isset($this->_attributes[$name]) ? $this->_attributes[$name] : null;
    }
public function getAttribute ( $ name ) { return isset ( $ this -> _attributes [ $ name ] ) ? $ this -> _attributes [ $ name ] : null ; }
Returns the named attribute value.
If this record is the result of a query and the attribute is not loaded,
`null` will be returned.
@param string $name the attribute name
@return mixed the attribute value. `null` if the attribute is not set or does not exist.
@see hasAttribute()
Returns the named attribute value . If this record is the result of a query and the attribute is not loaded null will be returned .