From c1fe56c53e40fa680d28ff56e2f3562b6e1081d0 Mon Sep 17 00:00:00 2001 From: tomas Date: Fri, 25 Feb 2005 03:27:34 +0000 Subject: [PATCH] Validator support added. Not yet enabled. --- livesupport/modules/storageServer/var/MetaData.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/livesupport/modules/storageServer/var/MetaData.php b/livesupport/modules/storageServer/var/MetaData.php index 017bf22aa..c6a24da85 100644 --- a/livesupport/modules/storageServer/var/MetaData.php +++ b/livesupport/modules/storageServer/var/MetaData.php @@ -23,12 +23,14 @@ Author : $Author: tomas $ - Version : $Revision: 1.19 $ + Version : $Revision: 1.20 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/MetaData.php,v $ ------------------------------------------------------------------------------*/ define('DEBUG', FALSE); #define('DEBUG', TRUE); +define('VALIDATE', FALSE); +#define('VALIDATE', TRUE); define('MODIFY_LAST_MATCH', TRUE); require_once "XML/Util.php"; @@ -448,6 +450,14 @@ class MetaData{ ); } $tree = $parser->getTree(); + //echo"
";var_dump($tree);exit;
+            if(VALIDATE){
+                require_once"Validator.php";
+                require_once"audioClipFormat.php";
+                $val =& new Validator($audioClipFormat);
+                $res = $val->validate($tree);
+                if(PEAR::isError($res)) return $res;
+            }
             break;
         default:
             return PEAR::raiseError(