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