function tripal_library_insert_property
2.x tripal_library.DEPRECATED.inc | tripal_library_insert_property($library_id, $property, $value, $update_if_present = 0) |
3.x tripal_library.DEPRECATED.inc | tripal_library_insert_property($library_id, $property, $value, $update_if_present = 0) |
1.x tripal_library.api.inc | tripal_library_insert_property($library_id, $property, $value, $update_if_present = 0) |
Insert a given property
Parameters
$library_id: The library_id of the property to insert
$property: The cvterm name of the property to insert
$value: The value of the property to insert
$update_if_present: A boolean indicated whether to update the record if it's already present
Return value
True of success, False otherwise
Related topics
1 call to tripal_library_insert_property()
- chado_library_insert in tripal_library/
tripal_library.module - When a new chado_library node is created we also need to add information to our chado_library table. This function is called on insert of a new node of type 'chado_library' and inserts the necessary information.
File
- tripal_library/
api/ tripal_library.api.inc, line 44 - Provides an application programming interface (API) to manage libraries
Code
function tripal_library_insert_property($library_id, $property, $value, $update_if_present = 0) {
return tripal_core_insert_property('library', $library_id, $property, 'tripal', $value, $update_if_present);
}