public function get($attr,$current=true)
    {
        if (!$this->_data || !array_key_exists($attr, $this->_data)) {
            return null;
        }
        return Connection::convertToEncoding($current ? $this->_data[$attr] : $this->_prev_data[$attr]);
    }
public function get($attr,$current=true)
    {
        if (!$this->_data || !array_key_exists($attr, $this->_data)) {
            return null;
        }
        return Connection::convertToEncoding($current ? $this->_data[$attr] : $this->_prev_data[$attr]);
    }
public function get ( $ attr , $ current = true ) { if ( ! $ this -> _data || ! array_key_exists ( $ attr , $ this -> _data ) ) { return null ; } return Connection :: convertToEncoding ( $ current ? $ this -> _data [ $ attr ] : $ this -> _prev_data [ $ attr ] ) ; }
Get an attribute value

@param string  $attr    attribute
@param boolean $current current value

@return mixed attribute value
Get an attribute value