function tripal_project_update_property

2.x tripal_project.DEPRECATED.inc tripal_project_update_property($project_id, $property, $value, $insert_if_missing = 0)
3.x tripal_project.DEPRECATED.inc tripal_project_update_property($project_id, $property, $value, $insert_if_missing = 0)
1.x tripal_project.api.inc tripal_project_update_property($project_id, $property, $value, $insert_if_missing = 0)

Update a given property

Parameters

$project_id: The project_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 $project_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_project_update_property()
chado_project_update in tripal_project/tripal_project.module
Implements hook_update().

File

tripal_project/api/tripal_project.api.inc, line 70
Provides an application programming interface (API) to manage projects

Code

function tripal_project_update_property($project_id, $property, $value, $insert_if_missing = 0) {
  return tripal_core_update_property('project', $project_id, $property, 'tripal', $value, $insert_if_missing);
}