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())); } }
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 &"); } }
public function save() { parent::save(); }
public function save() { $this->validate(); $this->attendAllEvents(); parent::save(); }
public function save() { parent::save(); if ($this->labelsModified) { $this->saveLabels(); } }
public function save() { $this->setLastModified(date(DATE_FORMAT)); parent::save(); if ($this->needToUpdateClusters) { GeoCluster::updateTicketClusters($this); } $this->updateSearchIndex(); }