Skip to content

Commit

Permalink
Add messageid, explanation, and source to the response messages to ta…
Browse files Browse the repository at this point in the history
…ke advantage of the new validator 0.8.0 beta 2 features within the soap output. Switch package creation script's file source from svn to cvs.

git-svn-id: http://svn.php.net/repository/pear/packages/Services_W3C_HTMLValidator/trunk@237181 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
saltybeagle committed Jun 7, 2007
1 parent 8bad2f2 commit dd08ed8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
3 changes: 2 additions & 1 deletion HTMLValidator.php
Expand Up @@ -313,7 +313,8 @@ static function parseSOAP12Response($xml)
}
// Handle the bool element validity
$element = $doc->getElementsByTagName('validity');
if ($element->item(0)->nodeValue == 'true') {
if ($element->length &&
$element->item(0)->nodeValue == 'true') {
$response->validity = true;
} else {
$response->validity = false;
Expand Down
18 changes: 18 additions & 0 deletions HTMLValidator/Message.php
Expand Up @@ -44,6 +44,24 @@ class Services_W3C_HTMLValidator_Message
*/
public $messageid;

/**
* Explanation for this message.
*
* HTML snippet which describes the message, usually with information on
* how to correct the problem.
* @var string
*/
public $explanation;

/**
* Source which caused the message.
*
* the snippet of HTML code which invoked the message to give the
* context of the e
* @var string
*/
public $source;

/**
* Constructor for a response message
*
Expand Down
2 changes: 1 addition & 1 deletion makepackage.php
Expand Up @@ -16,7 +16,7 @@
//$pfm->setOptions(array(
'packagedirectory' => dirname(__FILE__),
'baseinstalldir' => 'Services/W3C',
'filelistgenerator' => 'svn',
'filelistgenerator' => 'cvs',
'ignore' => array( 'package.xml',
'.project',
'*.tgz',
Expand Down

0 comments on commit dd08ed8

Please sign in to comment.