Beispiel #1
0
 public function __construct(Hymn_Client $client, Hymn_Module_Library $library, $quiet = FALSE)
 {
     $this->client = $client;
     $this->config = $this->client->getConfig();
     $this->library = $library;
     $this->quiet = $quiet;
     $this->dbc = $client->setupDatabaseConnection();
     $this->files = new Hymn_Module_Files($client, $quiet);
     $this->sql = new Hymn_Module_SQL($client, $quiet);
     $this->app = $this->config->application;
     //  shortcut to application config
     if ($app = $this->app && isset($app->installMode) && isset($app->installType)) {
         //  installation type and mode are set
         $this->isLiveCopy = $app->installMode === "live" && $app->installType === "copy";
     }
     //  this installation is a build for a live copy
 }