diff --git a/include/class_xml.inc b/include/class_xml.inc index b59f7babf1cdff19e04479bab23114b5d8a49860..a8c361674630c70c6f24f656572c97f71dd355c3 100644 --- a/include/class_xml.inc +++ b/include/class_xml.inc @@ -20,11 +20,24 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -/*! \brief This class contains all the function needed to manage xml +/*! + * \file class_xml.inc + * Source code for class xml + */ + +/*! + * \brief This class contains all the function needed to manage xml * files */ class xml { + /*! + * \brief Validate a xml file from a schema + * + * \param string $file XML Filename + * + * \param string $schema Schema of the XML file + */ static function validate($file, $schema) { // Enable user error handling libxml_use_internal_errors(true); @@ -58,7 +71,15 @@ class xml { } } - + /*! + * \brief Transform a xml document to an array + * + * \param $contents Contents + * + * \param integer $get_attributes Initialized at 1 + * + * \param string $priority Initialized at 'tag' + */ static function xml2array($contents, $get_attributes=1, $priority = 'tag') { if(!$contents) return array();