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