Exakat\Analyzer\Analyzer::initDocs PHP Method

initDocs() public static method

public static initDocs ( )
    public static function initDocs()
    {
        if (Analyzer::$docs === null) {
            $config = Config::factory();
            $pathDocs = $config->dir_root . '/data/analyzers.sqlite';
            self::$docs = new Docs($pathDocs);
        }
    }

Usage Example

Example #1
0
 public function hasResults()
 {
     Analyzer::initDocs();
     $data = Analyzer::$datastore->getRow('composer');
     $this->report = array();
     foreach ($data as $d) {
         $this->report[$d['component'] . ' (' . $d['version'] . ')'] = true;
     }
     return count($this->report) > 0;
 }
All Usage Examples Of Exakat\Analyzer\Analyzer::initDocs
Analyzer