3 * Exports a list of documentation warnings found by phpdoc
\r
6 class PhpdocXMLWarningExporter extends PhpdocXMLExporter {
\r
9 * Attributes of a warning container.
\r
12 var $warningAttributes = array(
\r
15 "elementtype" => "CDATA"
\r
18 var $fileprefix = "warnings_";
\r
20 function PhpdocXMLWarningExporter() {
\r
21 $this->PhpdocXMLExporter();
\r
22 } // end constructor
\r
26 reset($this->result);
\r
27 while (list($file, $warnings)=each($this->result)) {
\r
29 $this->xmlwriter->startElement("warnings", "", array("file" => array( "type" => "CDATA", "value" => $file)));
\r
32 while (list($type, $warning)=each($warnings)) {
\r
35 while (list($k, $data)=each($warning)) {
\r
36 $data["elementtype"] = $type;
\r
37 $this->xmlwriter->addElement("warning", $data["msg"], $this->getAttributes($data, $this->warningAttributes));
\r
42 $this->xmlwriter->endElement("warnings");
\r
46 } // end function create
\r
48 } // end class PhpdocXMLWarningExporter
\r