Пример #1
0
 function Run($aClass, $aFlags = "")
 {
     $this->iDBCache->RefreshClasses();
     $this->iDBCache->RefreshMethods();
     $fmt = $this->NewClassFormatter($this->iDBCache, $aFlags);
     $fmt->Start($this->iDB, $this->iProjname);
     // Format all the classes and their methods
     $cr = new ClassReader($fmt, $this->iDBCache, $aFlags);
     $cr->SetNumIndexCols($this->iNumIndexCols);
     $cr->Run($aClass);
     // Format all global functions
     $gf = new GlobalFuncReader($fmt, $this->iDBCache, $aFlags);
     $gf->Run();
     $fmt->End();
 }
 function Run($aClass, $aFlags = "")
 {
     $dbutils = $this->iDBCache->iDBUtils;
     $dbutils->SetProject($this->iProjname);
     $proj = $dbutils->GetProject();
     $docdir = $proj['fld_docdir'];
     $showPrivate = $proj['fld_showprivate'];
     $docType = $proj['fld_doctype'];
     $showGlobFuncs = $proj['fld_showglobfuncs'];
     $this->iDBCache->RefreshClasses();
     $this->iDBCache->RefreshMethods();
     $fmt = $this->NewClassFormatter($this->iDBCache, $aFlags);
     $fmt->Init($this->iProjname, $proj['fld_desc'], $docType, $docdir, $showPrivate, $showGlobFuncs);
     $ds = new DocStat($dbutils);
     list($avg, $nc, $nm) = $ds->ProjStat($this->iProjname);
     $fmt->InitStat($avg, $nc, $nm);
     $fmt->Start();
     // Format all the classes and their methods
     $cr = new ClassReader($fmt, $this->iDBCache, $aFlags);
     $cr->SetNumIndexCols($this->iNumIndexCols);
     $cr->Run($aClass);
     // Format all global functions
     if ($showGlobFuncs) {
         $gf = new GlobalFuncReader($fmt, $this->iDBCache, $aFlags);
         $gf->Run();
     }
     $fmt->End();
 }