function tripal_pub_insert_property
2.x tripal_pub.DEPRECATED.inc | tripal_pub_insert_property($pub_id, $property, $value, $update_if_present = 0) |
3.x tripal_pub.DEPRECATED.inc | tripal_pub_insert_property($pub_id, $property, $value, $update_if_present = 0) |
1.x tripal_pub.api.inc | tripal_pub_insert_property($pub_id, $property, $value, $update_if_present = 0) |
Insert a given property
Parameters
$pub_id: The pub_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
2 calls to tripal_pub_insert_property()
- chado_pub_insert in tripal_pub/
tripal_pub.module - Implementation of tripal_pub_insert().
- chado_pub_update in tripal_pub/
tripal_pub.module
File
- tripal_pub/
api/ tripal_pub.api.inc, line 929 - The Tripal Pub API
Code
function tripal_pub_insert_property($pub_id, $property, $value, $update_if_present = 0) {
return tripal_core_insert_property('pub', $pub_id, $property, 'tripal_pub', $value, $update_if_present);
}