function tripal_project_insert_property

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

Insert a given property

Parameters

$project_id: The project_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_project_insert_property()
chado_project_insert in tripal_project/tripal_project.module
Implementation of hook_insert().

File

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

Code

function tripal_project_insert_property($project_id, $property, $value, $update_if_present = 0) {
  return tripal_core_insert_property('project', $project_id, $property, 'tripal', $value, $update_if_present);
}