You are here

public function ResourceFactory::loadId in D7 Media 6

Load a file object from the database by id.

@see: drupal_file::load()

Parameters

int $id A file id. (required):

Return value

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

2 calls to ResourceFactory::loadId()
Resource::copy in resource/resource.module
Create a copy a Resource.
Resource::move in resource/resource.module
Move a Resource.

File

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

Class

ResourceFactory

Code

public function loadId($id) {
  return $this
    ->_load('rid', $id);
}