示例#1
0
文件: Notes.php 项目: nequal/Openpear
 /**
  *
  */
 public function visitDocument(PEAR_PackageProjector_Document $doc)
 {
     $handler = PEAR_PackageProjector::singleton()->getMessageHandler();
     $mssg = preg_replace("/\\s/", " ", substr($this->notes, 0, 50));
     $handler->buildMessage(5, "Setting notes... {$mssg}..", true);
     $doc->setChangelog($this->notes);
 }
示例#2
0
文件: Root.php 项目: nequal/Openpear
 /**
  *
  */
 public function visitDocument(PEAR_PackageProjector_Document $doc)
 {
     $doc->setSrcDir($this->getName());
 }
示例#3
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;
 }
示例#4
0
 /**
  *
  */
 public function visitDocument(PEAR_PackageProjector_Document $doc)
 {
     $doc->setReleaseVersion($this->version);
 }
示例#5
0
 /**
  *
  */
 public function visitDocument(PEAR_PackageProjector_Document $doc)
 {
     $handler = PEAR_PackageProjector::singleton()->getMessageHandler();
     $handler->buildMessage(5, "Setting Document Title... {$this->name}", true);
     $doc->setTitle($this->name);
 }
示例#6
0
 /**
  *
  */
 public function visitDocument(PEAR_PackageProjector_Document $doc)
 {
     $handler = PEAR_PackageProjector::singleton()->getMessageHandler();
     // Stylesheet
     $handler->buildMessage(5, "Setting stylesheet... ", true);
     $stylesheet = isset($this->projectinfo['docStylesheetFile']) ? $this->projectinfo['docStylesheetFile'] : '';
     $doc->setStylesheet($stylesheet);
     // Toutorial
     $handler->buildMessage(5, "Setting toutorial... ", true);
     $toutorial = isset($this->projectinfo['docToutorial']) ? $this->projectinfo['docToutorial'] : '';
     $doc->setTutorial($toutorial);
     //
     foreach ($this->items as $key => $item) {
         $doc->accept($item);
     }
     //
     //$doc->accept($this->Roles);
     //$doc->accept($this->Maintainers);
     //$doc->accept($this->AttributeManager);
     //$doc->accept($this->Dependencies);
     //$doc->accept($this->InstallGroups);
 }