You are here

function globallink_interface_get_row in GlobalLink Connect for Drupal 7.6

Retrieves interface's row.

Parameters

string $object_id: The object ID.

string $object_type: The object type.

string $source: The target source.

string $target: The target.

Return value

The row if interface exists. FALSE if not.

1 call to globallink_interface_get_row()
globallink_interface_update_ticket_id in globallink_interface/globallink_interface.inc
Updates interface ticket ID.

File

globallink_interface/globallink_interface.inc, line 457

Code

function globallink_interface_get_row($object_id, $object_type, $source, $target) {
  $result = db_select('globallink_core_interface', 'tci')
    ->fields('tci')
    ->condition('object_id', $object_id, '=')
    ->condition('object_type', $object_type, '=')
    ->condition('source', $source, '=')
    ->condition('target', $target, '=')
    ->execute();
  foreach ($result as $row) {
    return $row;
  }
  return FALSE;
}