/** * */ public function editRelationship($pm_rel_table_name_or_num, $pn_relation_id, $pn_rel_id, $pm_type_id = null, $ps_effective_date = null, $pa_source_info = null, $ps_direction = null, $pn_rank = null, $pa_options = null) { if ($vn_rc = parent::editRelationship($pm_rel_table_name_or_num, $pn_relation_id, $pn_rel_id, $pm_type_id, $ps_effective_date, $pa_source_info, $ps_direction, $pn_rank, $pa_options)) { $this->_setCurrent($pm_rel_table_name_or_num, $pn_rel_id); } return $vn_rc; }
/** * Override BaseModel::editRelationship() to update current location fields in ca_objects * * @param mixed $pm_rel_table_name_or_num * @param int $pn_relation_id * @param mixed $pm_type_id * @param string $ps_effective_date * @param string $ps_source_info * @param string $ps_direction * @param int $pn_rank * @param array $pa_array * * @return int */ public function editRelationship($pm_rel_table_name_or_num, $pn_relation_id, $pn_rel_id, $pm_type_id = null, $ps_effective_date = null, $ps_source_info = null, $ps_direction = null, $pn_rank = null, $pa_options = null) { if ($vn_rc = parent::editRelationship($pm_rel_table_name_or_num, $pn_relation_id, $pn_rel_id, $pm_type_id, $ps_effective_date, $ps_source_info, $ps_direction, $pn_rank, $pa_options)) { // if ($this->relationshipChangeMayAffectCurrentLocation($pm_rel_table_name_or_num, $pn_rel_id, $pm_type_id)) { // $this->deriveCurrentLocationForBrowse(); // } } return $vn_rc; }