attach() public method

public attach ( CComponent $owner )
$owner CComponent
 public function attach($event)
 {
     parent::attach($event);
     if ($this->resizeOnUpload) {
         $this->resizeOptions = array_merge(array('width' => 950, 'height' => 950, 'quality' => array('jpegQuality' => 75, 'pngCompressionLevel' => 7)), $this->resizeOptions);
     }
 }
 public function attach($event)
 {
     parent::attach($event);
     if ($this->resizeOnUpload) {
         $this->resizeOptions = array_merge($this->defaultResizeOptions, $this->resizeOptions);
     }
 }
Example #3
0
 /**
  * @param \CComponent $owner
  */
 public function attach($owner)
 {
     parent::attach($owner);
     $this->thumbnailer = Yii::app()->thumbnailer;
     if ($this->resizeOnUpload) {
         $this->resizeOptions = array_merge($this->defaultResizeOptions, $this->resizeOptions);
     }
 }