setAdapter(new TActiveControlAdapter($this)); $this->onComponentListLoad(array($this, 'loadConfig')); } public function getActiveControl() { return $this->getAdapter()->getBaseActiveControl(); } public function raiseCallbackEvent($param) { $this->raisePostBackEvent($param); $this->onCallback($param); } public function onComponentListLoad($handler) { $this->attachEventHandler('OnComponentListLoad', $handler); } public function getHost() { return $this->getViewState(self::HOST); } public function setHost($host) { $this->setViewState(self::HOST, $host); } public function getComponentType() { return $this->getViewState(self::COMPONENT_TYPE); } public function setComponentType($type) { $this->setViewState(self::COMPONENT_TYPE, $type); } } ?>