/** * 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; }
/** * */ 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); }