Beispiel #1
0
 public function save()
 {
     if ($this->isDefault()) {
         $zend_db = Database::getConnection();
         $zend_db->query('update substatus set isDefault=0 where status=?', $this->getStatus());
     }
     parent::save();
 }
 public function save()
 {
     parent::save();
     if ($this->categoriesUpdated) {
         $this->saveCategories(array_keys($this->getCategories()));
     }
     if ($this->actionsUpdated) {
         $this->saveActions(array_keys($this->getActions()));
     }
 }
Beispiel #3
0
 public function save()
 {
     $this->setLastModified(date(DATE_FORMAT));
     parent::save();
     if ($this->displayPermissionLevelHasChanged || $this->slaDaysHasChanged) {
         // Spawn a background process to reindex the search engine
         $cmd = PHP . ' ' . APPLICATION_HOME . '/scripts/workers/indexCategory.php ' . SITE_HOME . ' ' . $this->getId();
         if ($this->slaDaysHasChanged) {
             $cmd .= ' open';
         }
         shell_exec("nohup {$cmd} > /dev/null 2>&1 &");
     }
 }
Beispiel #4
0
 public function save()
 {
     parent::save();
 }
 public function save()
 {
     $this->validate();
     $this->attendAllEvents();
     parent::save();
 }
Beispiel #6
0
 public function save()
 {
     parent::save();
     if ($this->labelsModified) {
         $this->saveLabels();
     }
 }
Beispiel #7
0
 public function save()
 {
     $this->setLastModified(date(DATE_FORMAT));
     parent::save();
     if ($this->needToUpdateClusters) {
         GeoCluster::updateTicketClusters($this);
     }
     $this->updateSearchIndex();
 }