| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708 | 
							- <?php
 
- /**
 
-  * @defgroup tripal_stock_api Stock Module API
 
-  * @ingroup tripal_api
 
-  * @ingroup tripal_stock
 
-  */
 
-  
 
- /**
 
-  * Purpose: Return a given stock node using the nid
 
-  *
 
-  * @param $nid
 
-  *   The node ID of the stock you want to load
 
-  *
 
-  * @return
 
-  *   stock node with the passed in node ID
 
-  *
 
-  * @ingroup tripal_stock_api
 
-  */
 
- function tripal_stock_get_stock_by_nid ($nid) {
 
- 	
 
- 	return node_load($nid);
 
- 	
 
- }
 
- /**
 
-  * Purpose: Return a given stock object using the stock id
 
-  *
 
-  * @return 
 
-  *   Stock object created by node load
 
-  *
 
-  * @ingroup tripal_stock_api
 
-  */
 
- function tripal_stock_get_stock_by_stock_id ($stock_id) {
 
-   $sql = "SELECT nid FROM {chado_stock} WHERE stock_id=%d";
 
-   $r = db_fetch_object(db_query($sql, $stock_id));
 
-   if (!empty($r->nid)) {
 
-     return node_load($r->nid);
 
-   } else {
 
-     watchdog('tripal_stock', 'tripal_stock_get_stock_by_stock_id(!stock_id): no stock with that stock_id is sync\'d with drupal', array('!stock_id' => $stock_id), WATCHDOG_WARNING);
 
- 	}
 
- 	return 0;
 
- 	
 
- }
 
- /**
 
-  * Purpose: Returns all stocks currently sync'd with drupal
 
-  *
 
-  * @return 
 
-  *   An array of node objects keyed by stock_id
 
-  *
 
-  * @ingroup tripal_stock_api
 
-  */
 
- function tripal_stock_get_all_stocks() {
 
- 	$sql = "SELECT stock_id, nid from {chado_stock}";
 
- 	$resource = db_query($sql);
 
- 	$stocks = array();
 
- 	while ($r = db_fetch_object($resource)) {
 
- 		$node = node_load($r->nid);
 
- 		if ($node) {
 
-       $stocks[$r->stock_id] = $node;
 
-     }
 
- 	}
 
- 	return $stocks;
 
- }
 
- /**
 
-  * Purpose: Return all stocks that match a given criteria
 
-  *
 
-  * @param $values
 
-  *   An associative array containing the values for filtering the results.
 
-  *
 
-  * @return 
 
-  *   An array of matching stock objects (produced using node_load)
 
-  *   matching the given criteria
 
-  *
 
-  * Example usage:
 
-  * @code
 
-  *   $values =  array(
 
-  *     'organism_id' => array(
 
-  *         'genus' => 'Lens',
 
-  *         'species' => 'culinaris',
 
-  *      ),
 
-  *     'name' => 'CDC Redberry',
 
-  *     'type_id' => array (
 
-  *         'cv_id' => array (
 
-  *            'name' => 'germplasm',
 
-  *         ),
 
-  *         'name' => 'registered_cultivar',
 
-  *         'is_obsolete' => 0
 
-  *      ),
 
-  *   );
 
-  *   $result = tripal_stock_get_stocks($values);
 
-  * @endcode
 
-  * The above code selects a record from the chado stock table using three fields with values which
 
-  * identify a stock or multiple stocks. Then the node for each stock identified is returned, if it
 
-  * exists. The $values array is nested such that the organism is identified by way of the 
 
-  * organism_id foreign key constraint by specifying the genus and species.  The cvterm is also 
 
-  * specified using its foreign key and the cv_id for the cvterm is nested as well.
 
-  *
 
-  * @ingroup tripal_stock_api
 
-  */
 
- function tripal_stock_get_stocks($values) {
 
-   $stock_ids = tripal_core_chado_select('stock',array('stock_id'),$values);
 
-   // Change from stock_ids to nodes-----------------------------------
 
-   $stock_ids = array_filter($stock_ids);
 
-   $stock_ids = array_unique($stock_ids);
 
-   
 
-   $stocks = array();
 
-   foreach ($stock_ids as $stock_id) {
 
-     $node = tripal_stock_get_stock_by_stock_id($stock_id->stock_id);
 
-     if ($node) {
 
-       $stocks[] = $node;
 
-     }
 
-   }
 
-   
 
-   return $stocks;
 
- }
 
- /**
 
-  * Purpose: Retrieve stocks based on associated stock properties
 
-  *
 
-  * @param $stockprop_values
 
-  *   An array of column_name => value where column_name is any column in the stockprop table
 
-  *   and value is the value you want that column to be. This is used as a tripal_core_chado_select
 
-  *   values array so nesting is allowed.
 
-  * @param $stock_values
 
-  *   An array of column_name => value where column_name is any column in the stock table
 
-  *   and value is the value you want that column to be. This is used as a tripal_core_chado_select
 
-  *   values array so nesting is allowed. 
 
-  *
 
-  * @return
 
-  *   An array of stock node objects
 
-  *
 
-  * Example usage:
 
-  * @code
 
-  *   $stockprop_values =  array(
 
-  *     'value' => 'CDC Redberry',
 
-  *     'type_id' => array (
 
-  *         'cv_id' => array (
 
-  *            'name' => 'stock_properties',
 
-  *         ),
 
-  *         'name' => 'synonym',
 
-  *         'is_obsolete' => 0
 
-  *      ),
 
-  *   );
 
-  *   $stock_values =  array(
 
-  *     'organism_id' => array(
 
-  *         'genus' => 'Lens',
 
-  *         'species' => 'culinaris',
 
-  *      ),
 
-  *   );
 
-  *   $result = tripal_stock_get_stocks_by_stockprop($stockprop_values, $stock_values);
 
-  * @endcode
 
-  * The above code selects all Lens culinaris stocks with the synonym (stock property) CDC Redberry.
 
-  * The nodes for each stock selected are loaded and returned in an array.
 
-  *
 
-  * @ingroup tripal_stock_api
 
-  */
 
- function tripal_stock_get_stocks_by_stockprop($stockprop_values, $stock_values) {
 
-   //add stock values to stockprop values
 
-   if (!empty($stock_values)) {
 
-     $stockprop_values['stock_id'] = $stock_values;
 
-   }
 
-   
 
-   //get stock_ids from stockprop table
 
-   $stock_ids = tripal_core_chado_select('stockprop',array('stock_id'),$stockprop_values);
 
-   // Change from stock_ids to nodes-----------------------------------
 
-   $stock_ids = array_filter($stock_ids);
 
-   $stock_ids = array_unique($stock_ids);
 
-   
 
-   $stocks = array();
 
-   foreach ($stock_ids as $stock_id) {
 
-     $node = tripal_stock_get_stock_by_stock_id($stock_id->stock_id);
 
-     if ($node) {
 
-       $stocks[] = $node;
 
-     }
 
-   }
 
-   
 
-   return $stocks;
 
- }
 
- /**
 
-  * Purpose: Return all stocks with a given name identifier
 
-  *  which might match stock.name, stock.uniquename, dbxref.accession, 
 
-  *  stockprop.value where stockprop.type='synonym'
 
-  *
 
-  * @param $name
 
-  *   The name identfier to be used
 
-  * @param $organism_id
 
-  *   The stock.organism_id of the stock to be selected
 
-  *
 
-  * @return
 
-  *   An array of stock node objects
 
-  *
 
-  * @ingroup tripal_stock_api
 
-  */
 
- function tripal_stock_get_stock_by_name_identifier($name, $organism_id) {
 
-   $stock_ids = array();
 
-   
 
-   $options = array(
 
-     'case_insensitive_columns' => array('name', 'uniquename', 'accession', 'value')
 
-   );
 
-   
 
-   // where name_identifier = stock.name-------------------------------
 
-   $current_stocks = tripal_core_chado_select('stock',array('stock_id'),
 
-     array(
 
-       'name' => $name,
 
-       'organism_id' => $organism_id,
 
-     ),
 
-     array(
 
-       'case_insensitive_columns' => array('name'),
 
-     )
 
-   );
 
-   if (!empty($current_stocks)) {
 
-     foreach ($current_stocks as $c) { $stock_ids[] = $c->stock_id; }
 
-   }
 
-   // where name_identifier = stock.uniquename-------------------------------
 
-   $current_stocks = tripal_core_chado_select('stock',array('stock_id'),
 
-     array(
 
-       'uniquename' => $name,
 
-       'organism_id' => $organism_id,
 
-     ),
 
-     array(
 
-       'case_insensitive_columns' => array('uniquename'),
 
-     )
 
-   );
 
-   if (!empty($current_stocks)) {
 
-     foreach ($current_stocks as $c) { $stock_ids[] = $c->stock_id; }
 
-   }
 
-   
 
-   // where name_identifier = dbxref.accession-------------------------------
 
-   // linked to stock through stock.dbxref
 
-   $current_stocks = tripal_core_chado_select('stock',array('stock_id'),
 
-     array(
 
-       'dbxref_id' => array(
 
-         'accession' => $name,
 
-       ),
 
-       'organism_id' => $organism_id,
 
-     ),
 
-     array(
 
-       'case_insensitive_columns' => array('accession'),
 
-     )
 
-   );
 
-   if (!empty($current_stocks)) {
 
-     foreach ($current_stocks as $c) { $stock_ids[] = $c->stock_id; }  
 
-   }
 
-   
 
-   // linked to stock through stock_dbxref?
 
-   $current_stocks = tripal_core_chado_select('stock_dbxref',array('stock_id'),
 
-     array(
 
-       'dbxref_id' => array(
 
-         'accession' => $name,
 
-       ),
 
-       'stock_id' => array(
 
-         'organism_id' => $organism_id,
 
-       ),
 
-     ),
 
-     array(
 
-       'case_insensitive_columns' => array('accession'),
 
-     )
 
-   );
 
-   if (!empty($current_stocks)) {
 
-     foreach ($current_stocks as $c) { $stock_ids[] = $c->stock_id; }  
 
-   }
 
-   
 
-   // where name_identifier = stockprop.value-------------------------------
 
-   // where type='synonym' 
 
-   $current_stocks = tripal_core_chado_select('stockprop',array('stock_id'),
 
-     array(
 
-       'stock_id' => array(
 
-         'organism_id' => $organism_id,
 
-       ),
 
-       'type_id' => array(
 
-         'cv_id' => variable_get('chado_stock_prop_types_cv', 'null'),
 
-         'name' => 'synonym',
 
-       ),
 
-       'value' => $name,
 
-     ),
 
-     array(
 
-       'case_insensitive_columns' => array('value'),
 
-     )
 
-   );
 
-   if (!empty($current_stocks)) {
 
-     foreach ($current_stocks as $c) { $stock_ids[] = $c->stock_id; }
 
-   }
 
-   
 
-   // Change from stock_ids to nodes-----------------------------------
 
-   $stock_ids = array_filter($stock_ids);
 
-   $stock_ids = array_unique($stock_ids);
 
-   
 
-   $stocks = array();
 
-   foreach ($stock_ids as $stock_id) {
 
-     $node = tripal_stock_get_stock_by_stock_id($stock_id);
 
-     if ($node) {
 
-       $stocks[] = $node;
 
-     }
 
-   }
 
-   
 
-   return $stocks;
 
- }
 
-  
 
- /**
 
-  * Implements hook_chado_stock_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stock table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stock_schema() {
 
-   $description = array();
 
-   $description['description'] = 'Any stock can be globally identified by the combination of organism, uniquename and stock type. A stock is the physical entities, either living or preserved, held by collections. Stocks belong to a collection; they have IDs, type, organism, description and may have a genotype.';
 
-   $description['foreign keys']['organism'] = array(
 
-         'table' => 'organism',
 
-         'columns' => array(
 
-           'organism_id' => 'organism_id',
 
-         ),
 
-   );
 
-       
 
-   $description['foreign keys']['dbxref'] = array(
 
-         'table' => 'dbxref',
 
-         'columns' => array(
 
-           'dbxref_id' => 'dbxref_id',
 
-         ),
 
-   );
 
-       
 
-   $description['foreign keys']['cvterm'] = array(
 
-         'table' => 'cvterm',
 
-         'columns' => array(
 
-           'type_id' => 'cvterm_id',
 
-         ),
 
-   );
 
-      
 
-   $referring_tables = array(
 
-     'stock_cvterm',
 
-     'stock_dbxref',
 
-     'stock_genotype',
 
-     'stock_pub',
 
-     'stock_relationship',
 
-     'stockcollection_stock',
 
-     'stockprop'  
 
-   );
 
-   $description['referring_tables'] = $referring_tables;
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stockprop_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stockprop table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stockprop_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['cvterm'] = array(
 
-         'table' => 'cvterm',
 
-         'columns' => array(
 
-           'type_id' => 'cvterm_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stock'] = array(
 
-         'table' => 'stock',
 
-         'columns' => array(
 
-           'stock_id' => 'stock_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stockprop_pub_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stockprop_pub table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stockprop_pub_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['pub'] = array(
 
-         'table' => 'pub',
 
-         'columns' => array(
 
-           'pub_id' => 'pub_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stockprop'] = array(
 
-         'table' => 'stockprop',
 
-         'columns' => array(
 
-           'stockprop_id' => 'stockprop_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stock_cvterm_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stock_cvterm table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stock_cvterm_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['cvterm'] = array(
 
-         'table' => 'cvterm',
 
-         'columns' => array(
 
-           'cvterm_id' => 'cvterm_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stock'] = array(
 
-         'table' => 'stock',
 
-         'columns' => array(
 
-           'stock_id' => 'stock_id',
 
-         ),
 
-   );
 
-   $description['foreign keys']['pub'] = array(
 
-         'table' => 'pub',
 
-         'columns' => array(
 
-           'pub_id' => 'pub_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stock_dbxref_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stock_dbxref table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stock_dbxref_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['dbxref'] = array(
 
-         'table' => 'dbxref',
 
-         'columns' => array(
 
-           'dbxref_id' => 'dbxref_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stock'] = array(
 
-         'table' => 'stock',
 
-         'columns' => array(
 
-           'stock_id' => 'stock_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stock_genotype_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stock_genotype table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stock_genotype_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['genotype'] = array(
 
-         'table' => 'genotype',
 
-         'columns' => array(
 
-           'genotype_id' => 'genotype_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stock'] = array(
 
-         'table' => 'stock',
 
-         'columns' => array(
 
-           'stock_id' => 'stock_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stock_pub_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stock_pub table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stock_pub_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['pub'] = array(
 
-         'table' => 'pub',
 
-         'columns' => array(
 
-           'pub_id' => 'pub_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stock'] = array(
 
-         'table' => 'stock',
 
-         'columns' => array(
 
-           'stock_id' => 'stock_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stock_relationship_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stock_relationship table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stock_relationship_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['cvterm'] = array(
 
-         'table' => 'cvterm',
 
-         'columns' => array(
 
-           'type_id' => 'cvterm_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stock'] = array(
 
-         'table' => 'stock',
 
-         'columns' => array(
 
-           'subject_id' => 'stock_id',
 
-           'object_id' => 'stock_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stock_relationship_pub_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stock_relationship_pub table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stock_relationship_pub_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['pub'] = array(
 
-         'table' => 'pub',
 
-         'columns' => array(
 
-           'pub_id' => 'pub_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stock_relationship'] = array(
 
-         'table' => 'stock_relationship',
 
-         'columns' => array(
 
-           'stock_relationship_id' => 'stock_relationship_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stockcollection_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stockcollection table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stockcollection_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['cvterm'] = array(
 
-         'table' => 'cvterm',
 
-         'columns' => array(
 
-           'type_id' => 'cvterm_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['contact'] = array(
 
-         'table' => 'contact',
 
-         'columns' => array(
 
-           'contact_id' => 'contact_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stockcollection_stock_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stockcollection_stock table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stockcollection_stock_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['stock'] = array(
 
-         'table' => 'stock',
 
-         'columns' => array(
 
-           'stock_id' => 'stock_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stockcollection'] = array(
 
-         'table' => 'stockcollection',
 
-         'columns' => array(
 
-           'stockcollection_id' => 'stockcollection_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
- /**
 
-  * Implements hook_chado_stockcollectionprop_schema()
 
-  *
 
-  * Purpose: To add descriptions and foreign keys to default table description
 
-  * Note: This array will be merged with the array from all other implementations
 
-  *
 
-  * @return
 
-  *    Array describing the stockcollectionprop table
 
-  *
 
-  * @ingroup tripal_schema_api
 
-  */
 
- function tripal_stock_chado_stockcollectionprop_schema() {
 
-   $description = array();
 
-   
 
-   $description['foreign keys']['cvterm'] = array(
 
-         'table' => 'cvterm',
 
-         'columns' => array(
 
-           'type_id' => 'cvterm_id',
 
-         ),
 
-   );
 
-   
 
-   $description['foreign keys']['stockcollection'] = array(
 
-         'table' => 'stockcollection',
 
-         'columns' => array(
 
-           'stockcollection_id' => 'stockcollection_id',
 
-         ),
 
-   );
 
-   
 
-   return $description;
 
- }
 
 
  |