function tripal_library_update_property
2.x tripal_library.DEPRECATED.inc | tripal_library_update_property($library_id, $property, $value, $insert_if_missing = 0) |
3.x tripal_library.DEPRECATED.inc | tripal_library_update_property($library_id, $property, $value, $insert_if_missing = 0) |
1.x tripal_library.api.inc | tripal_library_update_property($library_id, $property, $value, $insert_if_missing = 0) |
Update a given property
Parameters
$library_id: The library_id of the property to update
$property: The cvterm name of the property to update
$value: The value of the property to update
$insert_if_missing: A boolean indicated whether to insert the record if it's absent
Note: The property will be identified using the unique combination of the $library_id and $property and then it will be updated with the supplied value
Return value
True of success, False otherwise
Related topics
1 call to tripal_library_update_property()
- chado_library_update in tripal_library/
tripal_library.module - Update nodes
File
- tripal_library/
api/ tripal_library.api.inc, line 68 - Provides an application programming interface (API) to manage libraries
Code
function tripal_library_update_property($library_id, $property, $value, $insert_if_missing = 0) {
return tripal_core_update_property('library', $library_id, $property, 'tripal', $value, $insert_if_missing);
}