Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->blocking) {
         throw new CException(Yii::t('NfyModule.app', 'Not implemented. DbQueue does not support blocking.'));
     }
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (strlen($this->id) !== 1) {
         throw new CException(Yii::t('NfyModule.app', 'Queue id must be exactly a one character.'));
     }
 }
Esempio n. 3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (is_string($this->redis)) {
         $this->redis = Yii::app()->getComponent($this->redis);
     } elseif (is_array($this->redis)) {
     }
     if (!$this->redis instanceof NfyRedisConnection) {
         throw new CException('The redis property must contain a name or a valid NfyRedisConnection component.');
     }
 }