private function getName() {
    if (!is_null($this->options->name)) {
      return $this->options->name;
    }

    if (!is_null($this->media)) {
      return $this->media->name;
    }

    return '';
  }
private function getName() {
    if (!is_null($this->options->name)) {
      return $this->options->name;
    }

    if (!is_null($this->media)) {
      return $this->media->name;
    }

    return '';
  }
private function getName ( ) { if ( ! is_null ( $ this -> options -> name ) ) { return $ this -> options -> name ; } if ( ! is_null ( $ this -> media ) ) { return $ this -> media -> name ; } return '' ; }
Get the Name text for the file, from options, then from db, otherwise ''

@return string
The Name text
Get the Name text for the file from options then from db otherwise