You are here

public function MediaInternetFileHandler::getFileObject in D7 Media 7

Same name and namespace in other branches
  1. 7.4 modules/media_internet/includes/MediaInternetFileHandler.inc \MediaInternetFileHandler::getFileObject()
  2. 7.2 modules/media_internet/includes/MediaInternetFileHandler.inc \MediaInternetFileHandler::getFileObject()
  3. 7.3 modules/media_internet/includes/MediaInternetFileHandler.inc \MediaInternetFileHandler::getFileObject()

Returns a file object which can be used for validation.

Return value

StdClass

Overrides MediaInternetBaseHandler::getFileObject

File

modules/media_internet/includes/MediaInternetFileHandler.inc, line 37
Definition of MediaInternetFileHandler.

Class

MediaInternetFileHandler
A class for managing the addition of Internet files.

Code

public function getFileObject() {
  if (!$this->fileObject) {
    $this->fileObject = file_uri_to_object($this->embedCode);
  }
  return $this->fileObject;
}