Beispiel #1
0
 public function save()
 {
     parent::save();
     $this->_dataWorker->setValue('idPage', $this->getId());
     $this->_dataWorker->save();
     self::getEntityEventManager()->trigger('save', $this);
 }
Beispiel #2
0
 public function setOptionKey($optionKey)
 {
     if ($this->_isUniqueKey($optionKey)) {
         $this->_dataWorker->setValue('optionKey', $optionKey);
     } else {
         throw new Exception('Option key is not unique');
     }
 }
Beispiel #3
0
 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');
     }
 }
Beispiel #4
0
 public function remove()
 {
     $this->_dataWorker->setValue('cityStatus', self::STATUS_DELETED);
     $this->save();
     $this->__cleanAliasCache();
     $this->__cleanCache();
 }
Beispiel #5
0
 protected function __setIdContent($idContent)
 {
     return $this->_dataWorker->setValue('idContent', $idContent);
 }
Beispiel #6
0
 public function isProcessed()
 {
     return $this->_dataWorker->getValue('isProcessed');
 }
Beispiel #7
0
 protected function __setIdPhoto($id)
 {
     $this->_dataWorker->setValue('idPhoto', $id);
 }
Beispiel #8
0
 protected function __setIdDoctor($id)
 {
     $this->_dataWorker->setValue('idDoctor', $id);
 }
Beispiel #9
0
 public function resetQuote()
 {
     $this->_quote = null;
     $this->_dataWorker->setValue('idQuote', 0);
 }
Beispiel #10
0
 private function _getWeekday()
 {
     return $this->_dataWorker->getValue('weekday');
 }
Beispiel #11
0
 public function save()
 {
     $this->_dataWorker->save();
 }
Beispiel #12
0
 public function jsonSerialize()
 {
     $data = $this->_dataWorker->getAllData();
     $data->id = $this->getId();
     return $data;
 }
Beispiel #13
0
 public function unsetConfirmedEmail()
 {
     $this->_dataWorker->setValue('profileEmailStatus', self::MAIL_STATUS_NOT_VALID);
     $this->save();
 }