Source for file StatusOverview.php
Documentation is available at StatusOverview.php
require_once 'QA/Peardoc/Coverage/Renderer.php';
* Puts the coverage result into the PEAR_QA_CI StatusOverview
* @package QA_Peardoc_Coverage
* @author Christian Weiske <cweiske@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version CVS: $Id: StatusOverview.php,v 1.3 2007/07/18 18:52:44 cweiske Exp $
* @link http://pear.php.net/package/QA_Peardoc_Coverage
implements QA_Peardoc_Coverage_Renderer
* Renders the given coverage array and returns the HTML.
* @param array $arDoc Documentation check results array
* @param array $options Array with a statusoverview object
* @return boolean true if all was ok
public function render($arDoc, $options = null )
|| !($options[0 ] instanceof QA_PEAR_CI_StatusOverview )
'Please pass a StatusOverview object as only option'
$so->registerCategory ('doc');
foreach ($arDoc as $strCategory => $arCategoryPackages) {
if ($strCategory[0 ] == '*') {
foreach ($arCategoryPackages as $strPackageName => $arPackageCoverage) {
//in case there is no error :)
$so->addPackage ($strPackageName);
if ($arPackageCoverage['*docid*'] === null ) {
'No documentation at all');
}//foreach package in category
}//public function render($arDoc)
* Generates the class/method coverage html
* @param string $strPackageName Package name
* @param array $arPackageCoverage Coverage array for
* @param QA_PEAR_CI_StatusOverview $so StatusOverview object
foreach ($arPackageCoverage as $strClass => $arMethods) {
if ($strClass[0 ] == '*') {
if ($arMethods === null ) {
//FIXME: display not docced
$strClass . ' undocumented'
foreach ($arMethods as $strMethod => $bDocumented) {
if ($strMethod[0 ] == '_') {
$strClass . '::' . $strMethod . ' undocumented'
}//public static function getMethodDocState($arPackageCoverage)
}//class QA_Peardoc_Coverage_Renderer_StatusOverview
Documentation generated on Mon, 11 Mar 2019 15:07:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|