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