Add an interface for checking xml

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8931 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-08-29 09:19:07 +00:00
parent af48b6f406
commit de686008dd
4 changed files with 108 additions and 11 deletions

View file

@ -19,6 +19,19 @@
function init() {
}
/**
* @brief Check whether the passing filename exists or not. Detect the file type, too.
*/
function procImporterAdminCheckXmlFile() {
$filename = Context::get('filename');
// TODO : when it success
$this->add('exists', 'true');
$this->add('type', 'XML'); // or TTXML
// return new Object(-1, 'error');
}
/**
* @brief sync member information with document information
**/
@ -936,5 +949,6 @@
}
return $extra_vars;
}
}
?>