public function W3CvalidatorAPI::validate in W3C Validator 7
* Validate the input URI. *
Parameters
string $uri: * the URL to validate.
File
- validators/
W3CvalidatorAPI.php, line 64 - W3CvalidatorAPI.php
Class
Code
public function validate($uri) {
// build the callUrl to call W3C validator
$callUrl = $this
->makeCallUrl($uri);
// call the W3Cvalidator WS
$result = drupal_http_request($callUrl);
if (!isset($result->error)) {
return $this
->parseSOAP12Response($result->data);
}
else {
return null;
}
}