setAdapter(new TActiveControlAdapter($this)); $this->onResourceListLoad(array($this, 'loadConfig')); } public function getActiveControl() { return $this->getAdapter()->getBaseActiveControl(); } public function raiseCallbackEvent($param) { $this->raisePostBackEvent($param); $this->onCallback($param); } public function onResourceListLoad($handler) { $this->attachEventHandler('OnResourceListLoad', $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); } public function getComponentName() { return $this->getViewState(self::COMPONENT_NAME); } public function setComponentName($name) { $this->setViewState(self::COMPONENT_NAME, $name); } } ?>