oCfg = $oCfg; $this->processRequestVariables(); } /***************************************************************************/ /** * @} * @name Initialization * @{ */ /** * Process the REQUEST variables and preset the some variables * @return void */ protected function processRequestVariables() { } /***************************************************************************/ /** * @} * @name Output * @{ */ /** * Get the messages that have been produced. Returns HTML. * @return string */ protected function getMessages() { if(count($this->asMessages) > 0) { return sprintf("
%s

\n", nl2br(q(join("\n", $this->asMessages)))); } } /** * Show the beginning of the control. * @return void */ protected function beginShow() { } /** * Show the control. Override this function to print your HTML code. * @return void */ protected abstract function doShow(); /** * Show the end of the control. * @return void */ protected function endShow() { } /** * Show the full control. You don't need to override this function. Instead, * override doShow(). * @return void */ public function show() { $this->beginShow(); $this->doShow(); $this->endShow(); } } ?>