|
|
|
File: c:/www/apache/doc2//warning/PhpdocWarning.php
PHPDOC 2000/12/03 - PHPDoc
PhpdocWarning
PhpdocObject | +-- PhpdocWarning
Container for all kind of Warnings the parser/analyser recognizes
|
private class PhpdocWarning extends PhpdocObject
Container for all kind of Warnings the parser/analyser recognizes
The base of the report generator module is this container. It's currentlypretty simple and will change later on...
|
| |
|
|
|
|
|
|
|
Private Field Summary |
| array |
$doc_warningsHash of documentation failures. |
| integer |
$num_doc_warningsCounter containing the number of documentation warnings. |
|
Public Method Details |
addDocWarning |
|
public void addDocWarning( string $file, string $elementtype, string $elementname, string $warning, [ string $type ] )
|
| |
Adds a warning to the list of class documentation failures.
|
| Parameter |
|
| string |
$file |
|
|
of the file that containts the error |
|
|
| string |
$elementtype |
|
|
of the element that caused the error: module, class, function, variable, use, const |
|
|
| string |
$elementname |
|
|
of the class/function/... that caused the warning |
|
|
| string |
$warning |
|
|
message itself |
|
|
| string |
$type |
= >>"missing"<< |
|
of the error: missing, mismatch, syntax, ... |
|
| Returns |
void |
| See Also |
addDocWarning() |
|
getWarnings |
|
public array getWarnings( )
|
| |
Returns a list of warnings.
|
| Returns |
array $warnings |
|
getNumDocWarnings |
|
public void getNumDocWarnings( )
|
| |
Returns the total number of documentation warnings.
|
| Returns |
void |
|
|
Private Field Details |
$doc_warnings |
|
private array $doc_warnings
>>array()<<
Hash of documentation failures.
|
|
$num_doc_warnings |
|
private integer $num_doc_warnings
>><<
Counter containing the number of documentation warnings.
|
| See Also |
getNumDocWarnings() |
|
|
|
|
|
| PHPDoc 1.0beta |