Пример #1
0
 /**
  * Update Document
  * @return boolean
  */
 public function updatedoc()
 {
     //
     if (!$this->ProjectDirectory->loadSetting($this->ProjectInfo, 0)) {
         return false;
     }
     $srcpath = $this->ProjectDirectory->getSrcPath();
     $docpath = $this->ProjectDirectory->getDocumentPath();
     $doc = new PEAR_PackageProjector_Document($docpath);
     $handler = PEAR_PackageProjector::singleton()->getMessageHandler();
     /*
      * Create document files
      */
     $handler->buildMessage(5, "*** Create document files ***", true);
     //
     $doc->accept($this->ProjectDirectory->getPackageDirectory());
     $doc->accept($this->ProjectInfo);
     $doc->build();
     $handler->buildMessage(5, "*** Finished created document files ***", true);
     return true;
 }