function tripal_pub_update_property
2.x tripal_pub.DEPRECATED.inc | tripal_pub_update_property($pub_id, $property, $value, $insert_if_missing = 0) |
3.x tripal_pub.DEPRECATED.inc | tripal_pub_update_property($pub_id, $property, $value, $insert_if_missing = 0) |
1.x tripal_pub.api.inc | tripal_pub_update_property($pub_id, $property, $value, $insert_if_missing = 0) |
Update a given property
Parameters
$pub_id: The pub_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 $pub_id and $property and then it will be updated with the supplied value
Return value
True of success, False otherwise
Related topics
File
- tripal_pub/
api/ tripal_pub.api.inc, line 953 - The Tripal Pub API
Code
function tripal_pub_update_property($pub_id, $property, $value, $insert_if_missing = 0) {
return tripal_core_update_property('pub', $pub_id, $property, 'tripal_pub', $value, $insert_if_missing);
}