oCfg = $oCfg; $this->processRequestVariables(); } /***************************************************************************/ /** * @} * @name Initialization * @{ */ /** * Process the REQUEST variables and preset the some variables. Override * this function to process GET and POST parameters. * @return void */ protected function processRequestVariables() { } /***************************************************************************/ /** * @} * @name Access to attributes * @{ */ /** * Set the page title * @param $str (string) * @return void */ public function setTitle($str) { $this->strTitle = $str; } /** * Set the title icon * @param $str (string) * @return void */ public function setIcon($str) { $this->strIcon = $str; } /** * Get the page title * @return string */ public function getTitle() { return $this->strTitle; } /** * Get the title icon * @return string */ public function getIcon() { return $this->strIcon; } /***************************************************************************/ /** * @} * @name Output * @{ */ /** * Show the beginning of the page. * @return void */ protected function beginShow() { html_header("\n"); PageBlue(q($this->getTitle()), $this->getIcon()); // print error messages from the configuration if($s = trim($this->oCfg->getMessages()) != "") { printf("
%s
\n", nl2br(q($s))); } } /** * Show the beginning of the page. Override this function to print your * HTML code. * @return void */ protected abstract function doShow(); /** * Show the end of the page. * @return void */ protected function endShow() { _PageBlue(); } /** * Show the full page. You don't need to override this function. Instead, * override doShow(). * @return void */ public function show() { $this->beginShow(); $this->doShow(); $this->endShow(); } } ?>