diff OnlineValidator.inc @ 93:8aadd7a23b68

Moved some functionality from common-functions into Http class. Reorganized Validator into a class hierarchy. Added functionality for validating with a buffer in addition to URLs.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 18 Oct 2012 16:44:48 +0200
parents
children 2370f4450983
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OnlineValidator.inc	Thu Oct 18 16:44:48 2012 +0200
@@ -0,0 +1,15 @@
+<?php
+include_once 'ScriptIncludeCache.inc';
+
+/// @cond
+$baseDir = dirname(__FILE__);
+$cache = ScriptIncludeCache::instance(__FILE__);
+$cache->includeOnce('Validator.inc', $baseDir);
+/// @endcond
+
+
+abstract class OnlineValidator extends Validator
+{
+  protected $validator_url = 'http://validator.w3.org/check';
+}
+?>
\ No newline at end of file