Validator support added. Not yet enabled.

This commit is contained in:
tomas 2005-02-25 03:27:34 +00:00
parent 84c6a4ee91
commit c1fe56c53e
1 changed files with 11 additions and 1 deletions

View File

@ -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"<pre>";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(