Example #1
0
 public function init()
 {
     parent::init();
     if ($this->driver != 'GD' && $this->driver != 'ImageMagick') {
         throw new CException('driver must be GD or ImageMagick');
     }
 }
Example #2
0
 public function __construct($aParams)
 {
     parent::__construct($aParams);
     $this->init();
 }