function Edit()
 {
     $this->preferences_data = serialize($this->preferences_data);
     $iRetVal = parent::Edit();
     $this->preferences_data = unserialize($this->preferences_data);
     return $iRetVal;
 }
 function Edit()
 {
     $this->update_date = DCL_NOW;
     $aSessionDataCopy = $this->session_data;
     $this->session_data = serialize($this->session_data);
     parent::Edit(array('create_date'));
     $this->session_data = $aSessionDataCopy;
 }
 function Edit()
 {
     if ($this->AdjustSeq($this->seq, $this->topicid) == -1) {
         return -1;
     }
     $this->modifyby = $GLOBALS['DCLID'];
     $this->modifyon = DCL_NOW;
     return parent::Edit(array('createby', 'createon'));
 }
 function Edit()
 {
     if ($this->dcl_entity_type_id == DCL_ENTITY_GLOBAL) {
         $this->dcl_entity_id = 0;
         $this->dcl_entity_id2 = 0;
     } else {
         if ($this->dcl_entity_type_id != DCL_ENTITY_WORKORDER) {
             $this->dcl_entity_id2 = 0;
         }
     }
     $this->page_date = DCL_NOW;
     return parent::Edit();
 }
 function Edit()
 {
     $oStatus = CreateObject('dcl.dbStatuses');
     if ($oStatus->GetStatusType($this->status) == 2) {
         $this->closedon = DCL_NOW;
     } else {
         $this->closedby = null;
         $this->closedon = null;
     }
     if ($this->module_id < 1) {
         $this->module_id = null;
     }
     if ($this->entity_source_id < 1) {
         $this->entity_source_id = null;
     }
     parent::Edit(array('createdon'));
     $this->hoursText = $this->GetHoursText();
 }
 function Edit()
 {
     $this->modifyby = $GLOBALS['DCLID'];
     $this->modifyon = DCL_NOW;
     return parent::Edit(array('createby', 'createon'));
 }
 function Edit()
 {
     $this->AdjustWeights($this->weight, $this->id);
     return parent::Edit();
 }
 function Edit()
 {
     if ($this->closedby < 1) {
         $this->closedby = null;
         $this->closedon = null;
     }
     if ($this->module_id < 1) {
         $this->module_id = null;
     }
     if ($this->entity_source_id < 1) {
         $this->entity_source_id = null;
     }
     if ($this->reported_version_id < 1) {
         $this->reported_version_id = null;
     }
     if ($this->targeted_version_id < 1) {
         $this->targeted_version_id = null;
     }
     if ($this->fixed_version_id < 1) {
         $this->fixed_version_id = null;
     }
     parent::Edit();
 }