Exemplo n.º 1
0
 /**
  * Load the resource link from the database.
  *
  * @param int $id     Record ID of resource link
  * @param DataConnector   $dataConnector    Database connection object
  *
  * @return ResourceLink  ResourceLink object
  */
 public static function fromRecordId($id, $dataConnector)
 {
     $resourceLink = new ResourceLink();
     $resourceLink->dataConnector = $dataConnector;
     $resourceLink->load($id);
     return $resourceLink;
 }