You are here

public function ResourceFactory::loadUrl in D7 Media 6

Load a file object from the database by path.

@see: drupal_file::load()

Parameters

string $path A path to a file. (required):

Return value

object|bool A Drupal file object or FALSE if a file was not found.

File

resource/resource.module, line 527
Resource API for Drupal, a replacement for files.

Class

ResourceFactory

Code

public function loadUrl($url) {
  return $this
    ->_load('url', $url);
}