setControlState('Facade', $facade); } public function getFacade() { return $this->getControlState('Facade'); } public function onPreRender($param) { parent::onPreRender($param); if (!$this->getFacade()) { throw new TInvalidDataValueException( 'FacadeTemplateControl requires a Facade instance' ); } } } ?>