Exakat\Reports\Reports::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
    public function __construct()
    {
        $this->config = Config::factory();
        $analyzers = Analyzer::getThemeAnalyzers($this->config->thema);
        $this->themesList = '("' . implode('", "', $analyzers) . '")';
        $this->sqlite = new \Sqlite3($this->config->projects_root . '/projects/' . $this->config->project . '/dump.sqlite', \SQLITE3_OPEN_READONLY);
        $this->datastore = new Datastore($this->config);
    }

Usage Example

Пример #1
0
 /**
  * __construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->docs = new Docs($this->config->dir_root . '/data/analyzers.sqlite');
     $this->timesToFix = $this->docs->getTimesToFix();
     $this->themesForAnalyzer = $this->docs->getThemesForAnalyzer();
     $this->severities = $this->docs->getSeverities();
 }
All Usage Examples Of Exakat\Reports\Reports::__construct