init() public méthode

public init ( )
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->crop_field === null xor $this->cropped_field === null) {
         throw new InvalidConfigException('The crop_field and cropped_field properties must be both filled or both unfilled.');
     }
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->createThumbsOnSave) {
         if ($this->thumbPath === null) {
             $this->thumbPath = $this->path;
         }
         if ($this->thumbUrl === null) {
             $this->thumbUrl = $this->url;
         }
         foreach ($this->thumbs as $config) {
             $width = ArrayHelper::getValue($config, 'width');
             $height = ArrayHelper::getValue($config, 'height');
             if ($height < 1 && $width < 1) {
                 throw new InvalidConfigException(sprintf('Length of either side of thumb cannot be 0 or negative, current size ' . 'is %sx%s', $width, $height));
             }
         }
     }
 }