Edit via SFTP
<?php namespace greenmine;
/*
  FILE: greennmine/app.php
  PURPOSE: Greenmine application framework classes
  HISTORY:
    2013-11-13 Extracted clsVbzApp from vbz-page.php
    2016-06-13 Adapting for Greenmine
    2017-01-24 rewriting/updating for Ferreteria revisions (wasn't working before anyway)
    2017-04-17 Removing gtAdminObject because the only content was SystemEventsClass() and I'm removing that too.
      We're going to the App object to retrieve the event log now.
    2020-03-08 some tidying and updating
*/
 
class cMenuKiosk extends \fcMenuKiosk_admin {
#    public function GetBasePath() : string { return cGlobals::GetWebPath_forAppBase(); }
}
 
/*::::
  PURPOSE: main application framework class for Greenmine
*/
class cApp extends \fcAppStandardAdmin {
    private $oPage;
    private $oData;
 
    // ++ SETUP ++ //
 
    public function Go() {
        $this->SetStartTime();	// get the starting time, for benchmarking
        parent::Go();    }
 
    // -- SETUP -- //
    // ++ CLASSES ++ //
 
    protected function GetPageClass() : string { return cPage::class; }
    protected function GetKioskClass() : string { return cMenuKiosk::class; }
 
    // -- CLASSES -- //
    // ++ OBJECTS ++ //
 
    private $db = NULL;
    // CEMENT
    public function GetDatabase() : \ferret\data\cDatabase {
        if (is_null($this->db)) {
            $this->db = \ferret\data\cDatabase::Instantiate(static::Globals()->GetGreenmineDBSpec(), FALSE);
        }
        return $this->db;
    }
 
    // -- OBJECTS -- //
 
}