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(); }