public function MediaInternetFileHandler::getFileObject in D7 Media 7.4
Same name and namespace in other branches
- 7 modules/media_internet/includes/MediaInternetFileHandler.inc \MediaInternetFileHandler::getFileObject()
- 7.2 modules/media_internet/includes/MediaInternetFileHandler.inc \MediaInternetFileHandler::getFileObject()
- 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 39 - 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;
}