function tripal_analysis_insert_property

2.x tripal_analysis.DEPRECATED.inc tripal_analysis_insert_property($analysis_id, $property, $value, $update_if_present = 0, $cv_name = 'tripal')
3.x tripal_analysis.DEPRECATED.inc tripal_analysis_insert_property($analysis_id, $property, $value, $update_if_present = 0, $cv_name = 'tripal')
1.x tripal_analysis.api.inc tripal_analysis_insert_property($analysis_id, $property, $value, $update_if_present = 0, $cvname = 'tripal')

Insert a given property

Parameters

$analysis_id: The analysis_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

$cvname: The name of the vocabulary to which the term belongs. Defaults to 'tripal'.

Return value

True of success, False otherwise

Related topics

2 calls to tripal_analysis_insert_property()
chado_analysis_insert in tripal_analysis/tripal_analysis.module
When a new chado_analysis node is created we also need to add information to our chado_analysis table. This function is called on insert of a new node of type 'chado_analysis' and inserts the necessary information.
chado_analysis_update in tripal_analysis/tripal_analysis.module
Update analyses

File

tripal_analysis/api/tripal_analysis.api.inc, line 78
API functions relating to Analysis'

Code

function tripal_analysis_insert_property($analysis_id, $property, $value, $update_if_present = 0, $cvname = 'tripal') {
  return tripal_core_insert_property('analysis', $analysis_id, $property, $cvname, $value, $update_if_present);
}