You are here

function ResourceFactory::loadRelationship in D7 Media 6

Parameters

key primary key for where clause:

value to limit key to.: think about this context thing later..

File

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

Class

ResourceFactory

Code

function loadRelationship($key, $id, $context = NULL, $media = NULL) {

  // select * from relationships where $key = $candidate AND context = $context
  // foreach row { $relatives[] = $this->loadId($relative->rid)->context($row) }
}