当前位置: 首页>>代码示例>>PHP>>正文


PHP HTMLWriter::htmlWriter方法代码示例

本文整理汇总了PHP中HTMLWriter::htmlWriter方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLWriter::htmlWriter方法的具体用法?PHP HTMLWriter::htmlWriter怎么用?PHP HTMLWriter::htmlWriter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTMLWriter的用法示例。


在下文中一共展示了HTMLWriter::htmlWriter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: packageIndexWriter

 /** Build the package index.
  *
  * @param Doclet doclet
  */
 function packageIndexWriter(&$doclet)
 {
     parent::htmlWriter($doclet);
     $phpdoctor =& $this->_doclet->phpdoctor();
     $this->_sections[0] = array('title' => 'Overview', 'selected' => TRUE);
     $this->_sections[1] = array('title' => 'Namespace');
     $this->_sections[2] = array('title' => 'Class');
     //$this->_sections[3] = array('title' => 'Use');
     if ($phpdoctor->getOption('tree')) {
         $this->_sections[4] = array('title' => 'Tree', 'url' => 'overview-tree.html');
     }
     if ($doclet->includeSource()) {
         $this->_sections[5] = array('title' => 'Files', 'url' => 'overview-files.html');
     }
     $this->_sections[6] = array('title' => 'Deprecated', 'url' => 'deprecated-list.html');
     $this->_sections[7] = array('title' => 'Todo', 'url' => 'todo-list.html');
     $this->_sections[8] = array('title' => 'Index', 'url' => 'index-all.html');
     ob_start();
     echo "<hr>\n\n";
     echo '<h1>' . $this->_doclet->docTitle() . "</h1>\n\n";
     $rootDoc =& $this->_doclet->rootDoc();
     $textTag =& $rootDoc->tags('@text');
     if ($textTag) {
         $description = $this->_processInlineTags($textTag, TRUE);
         if ($description) {
             echo '<div class="comment">', $description, "</div>\n\n";
             echo '<dl><dt>See:</dt><dd><b><a href="#overview_description">Description</a></b></dd></dl>' . "\n\n";
         }
     }
     echo '<table class="title">' . "\n";
     echo '<tr><th colspan="2" class="title">Namespaces</th></tr>' . "\n";
     $packages =& $rootDoc->packages();
     ksort($packages);
     foreach ($packages as $name => $package) {
         $textTag =& $package->tags('@text');
         echo '<tr><td class="name"><a href="' . $package->asPath() . '/package-summary.html">' . $package->name() . '</a></td>';
         echo '<td class="description">' . strip_tags($this->_processInlineTags($textTag, TRUE), '<a><b><strong><u><em>') . '</td></tr>' . "\n";
     }
     echo '</table>' . "\n\n";
     $textTag =& $rootDoc->tags('@text');
     if ($textTag) {
         $description = $this->_processInlineTags($textTag);
         if ($description) {
             echo '<div class="comment" id="overview_description">', $description, "</div>\n\n";
         }
     }
     echo "<hr>\n\n";
     $this->_output = ob_get_contents();
     ob_end_clean();
     $this->_write('overview-summary.html', 'Overview', TRUE);
 }
开发者ID:Naatan,项目名称:CrossORM,代码行数:55,代码来源:packageIndexWriter.php


注:本文中的HTMLWriter::htmlWriter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。