public function getCaption()
    {
        return $this->caption ?: (isset($this->ui['caption']) ? $this->ui['caption'] :
            ucwords(str_replace('_', ' ', $this->short_name)));
    }
public function getCaption()
    {
        return $this->caption ?: (isset($this->ui['caption']) ? $this->ui['caption'] :
            ucwords(str_replace('_', ' ', $this->short_name)));
    }
public function getCaption ( ) { return $ this -> caption ? : ( isset ( $ this -> ui [ 'caption' ] ) ? $ this -> ui [ 'caption' ] : ucwords ( str_replace ( '_' , ' ' , $ this -> short_name ) ) ) ; }
Returns field caption for use in UI.

@return string
Returns field caption for use in UI .