protected function field($name, $default = null) {
        return array_key_exists($name, $this->data) ? $this->data[$name] : $default;
    }
protected function field($name, $default = null) {
        return array_key_exists($name, $this->data) ? $this->data[$name] : $default;
    }
protected function field ( $ name , $ default = null ) { return array_key_exists ( $ name , $ this -> data ) ? $ this -> data [ $ name ] : $ default ; }
Get the data for a field
@param string $name Field name
@param mixed $default Default value if not defined
@return mixed
Get the data for a field