public function __construct() { $this->dbConnect = new OpfDbConnect(); $dataSource = new OpfDataSource(); $this->dataSource = $dataSource; /* cache frequently needed data */ $this->userId = $dataSource->getUserId(); $this->userTimeZone = $dataSource->getUserTimeZone(); $propertyList = array(); $this->applicationContext = new ApplicationContext($this); $loc = new OpfLocalization(); $this->locale = $loc->getCurrentLocale(); }
public function render() { $str = null; /* return something to debug */ if ($this->debug == 1) { $str .= '<span>'; } // if $str .= $this->renderMessage(); if ($this->debug == 1) { $str .= '<hr>' . $this->actionTitle . ' input parameters: [' . $this->renderPostParameters() . '] Parameter Block:' . OpfDebugUtil::formatArrayInString($this->parameterBlock) . '<hr>'; $str .= '</span>'; } // if if (isset($this->parameterBlock[OpfConfig::PARAM_MODAL_DIALOG_CALLBACK])) { return OpfDataSource::renderDialogResponse($this->actionTitle, $str); } else { return $str; } }