|
Tripal
|
Public Member Functions | |
| setBaseTable (string $value) | |
| getBaseTable () | |
| setSchemaName (string $value) | |
| getSchemaName () | |
| setValues (array $values) | |
| setValue (string $key, $value) | |
| getValues () | |
| getValue (string $key, array $options=[]) | |
Protected Attributes | |
| string | $base_table |
| string | $schema_name |
| array | $values |
Chado Buddy Record
Each chado record returned by a ChadoBuddy service will be in the form of an instance of this class.
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::getBaseTable | ( | ) |
Returns the name of the base table.
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::getSchemaName | ( | ) |
Returns the value of the schema name.
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::getValue | ( | string | $key, |
| array | $options = [] |
||
| ) |
Retrieves one value from the values array,
| string | $key | A key for the $values associative array. |
| array | $options | Associative array of options. The only supported option is 'strict'. If the key does not exist and strict is TRUE, throw an exception. If FALSE, return NULL. Defaults to TRUE. |
| Drupal |
tripal_chado\ChadoBuddy\Exceptions\ChadoBuddyException When the specified key is not present and strict is set to TRUE (default).
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::getValues | ( | ) |
Returns the associative array of values looked up from a chado table record.
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::setBaseTable | ( | string | $value | ) |
Sets the value of the base table.
| string | $value | The table name to be stored. |
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::setSchemaName | ( | string | $value | ) |
Sets the value of the schema name.
| string | $value | The schema name to be stored. |
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::setValue | ( | string | $key, |
| $value | |||
| ) |
Adds or updates one value in the values array.
| string | $key | A key for the $values associative array. |
| mixed | $value | The value to be stored. |
| Drupal\tripal_chado\ChadoBuddy\ChadoBuddyRecord::setValues | ( | array | $values | ) |
Sets the associative array with values looked up from a chado table record.
| array | $values | An associative array of key=>value pairs. |