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(); }
public function setType($type) { $type = (int) $type; if (in_array($type, array(self::TYPE_SUBSCRIBE, self::TYPE_UNSUBSCRIBE, self::TYPE_NOT_ACTIVATED))) { $this->_dataWorker->setValue('subscriptionType', $type); } else { throw new Exception('Wrong type given'); } }
protected function __setIdContent($idContent) { return $this->_dataWorker->setValue('idContent', $idContent); }
public function setProcessed($val) { $this->_dataWorker->setValue('isProcessed', $val); }
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 _setWeekday($day) { $this->_dataWorker->setValue('weekday', $day); }
public function unsetConfirmedEmail() { $this->_dataWorker->setValue('profileEmailStatus', self::MAIL_STATUS_NOT_VALID); $this->save(); }