public function save() { parent::save(); $this->_dataWorker->setValue('idPage', $this->getId()); $this->_dataWorker->save(); self::getEntityEventManager()->trigger('save', $this); }
public function setOptionKey($optionKey) { if ($this->_isUniqueKey($optionKey)) { $this->_dataWorker->setValue('optionKey', $optionKey); } else { throw new Exception('Option key is not unique'); } }
public function setStatus($status) { if (in_array($status, array(self::STATUS_ACTIVATE, self::STATUS_DROPPED, self::STATUS_WAIT))) { $this->_dataWorker->setValue('codeStatus', $status); } else { throw new Exception('Wrong code status given'); } }
public function remove() { $this->_dataWorker->setValue('cityStatus', self::STATUS_DELETED); $this->save(); $this->__cleanAliasCache(); $this->__cleanCache(); }
protected function __setIdContent($idContent) { return $this->_dataWorker->setValue('idContent', $idContent); }
public function isProcessed() { return $this->_dataWorker->getValue('isProcessed'); }
protected function __setIdPhoto($id) { $this->_dataWorker->setValue('idPhoto', $id); }
protected function __setIdDoctor($id) { $this->_dataWorker->setValue('idDoctor', $id); }
public function resetQuote() { $this->_quote = null; $this->_dataWorker->setValue('idQuote', 0); }
private function _getWeekday() { return $this->_dataWorker->getValue('weekday'); }
public function save() { $this->_dataWorker->save(); }
public function jsonSerialize() { $data = $this->_dataWorker->getAllData(); $data->id = $this->getId(); return $data; }
public function unsetConfirmedEmail() { $this->_dataWorker->setValue('profileEmailStatus', self::MAIL_STATUS_NOT_VALID); $this->save(); }