Example #1
0
 /**
  * Initializes the widget.
  *
  * @throws InvalidConfigException if the "mask" property is not set.
  */
 public function init()
 {
     parent::init();
     if (empty($this->mask) && empty($this->clientOptions['alias'])) {
         throw new InvalidConfigException("Either the 'mask' property or the 'clientOptions[\"alias\"]' property must be set.");
     }
 }
Example #2
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->checkRequirements();
     if (!isset($this->imageOptions['id'])) {
         $this->imageOptions['id'] = $this->options['id'] . '-image';
     }
 }