subject_relationships: an array of stock relaionship objects // where each object has the following fields: stock_relationship_id, // subject, type_id, type, value, rank, object_id (current stock_id) // - $node->subject_relationships->subject: a stock object describing the // subject 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 ?> '.print_r($node,TRUE).''; ?>
Subject Relationships
The stock 'stock_name ?>' is the object in the following relationships:
subject_relationships) > 0){ ?> subject_relationships as $result){ $class = 'tripal_stock-table-odd-row tripal-table-odd-row'; if($i % 2 == 0 ){ $class = 'tripal_stock-table-odd-row tripal-table-even-row'; } ?> subject; if ($subject->nid) {?>
Subject Type Current Stock (Object)
stock_name.' ('.$subject->uniquename.')', 'node/'.$subject->nid); ?> stock_name.' ('.$subject->uniquename.')'; ?> type; ?> stock_name; ?>