object_relationships: an array of stock relaionship objects
// where each object has the following fields: stock_relationship_id,
// subject_id (current stock_id), type_id, type, value, rank, object
// - $node->object_relationships->object: a stock object describing the
// object stock with the fields: stock_id, stock_name, uniquename,
// description, stock_type_id, organism(object), man_db_reference(object),
// nid (if sync'd with Drupal)
// NOTE: For a full listing of fields available in the node object the
// print_r $node line below or install the Drupal Devel module which
// provides an extra tab at the top of the node page labelled Devel
?>
array('rank' => 'ASC')));
//uncomment this line to see a full listing of the fields avail. to $node
//print '
'.print_r($node,TRUE).'
';
?>
Relationships
stock->stock_relationship->subject_id;
if (!$relationships) {
$relationships = array();
} elseif (!is_array($relationships)) {
$relationships = array($relationships);
}
?>
Subject relationships
0){ ?>
Current Stock (Subject) |
Type |
Object |
stock->name; ?> |
type_id->name; ?> |
object_id;
if ($object->nid) {?>
name.' ('.$object->uniquename.')', 'node/'.$object->nid); ?> |
name.' ('.$object->uniquename.')'; ?> |
There are no relationships where the current stock is the subject
';
} //end of if there are object relationships ?>
stock->stock_relationship->object_id;
if (!$relationships) {
$relationships = array();
} elseif (!is_array($relationships)) {
$relationships = array($relationships);
}
?>
Object relationships
0){ ?>
Subject |
Type |
Current Stock (Object) |
subject_id;
if ($subject->nid) {?>
name.' ('.$subject->uniquename.')', 'node/'.$subject->nid); ?> |
name.' ('.$subject->uniquename.')'; ?> |
type_id->name; ?> |
stock->name; ?> |
There are no relationships where the current stock is the object.';
} //end of if there are subject relationships ?>