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