/**
* Read a well-formed XML file
*
+ * @param $file
+ *
* @return array (0 => SimpleXMLElement|FALSE, 1 => errorMessage|FALSE)
*/
public static function parseFile($file) {
/**
* Read a well-formed XML file
*
+ * @param $string
+ *
* @return array (0 => SimpleXMLElement|FALSE, 1 => errorMessage|FALSE)
*/
public static function parseString($string) {
return array($xml, $error);
}
+ /**
+ * @param $errors
+ *
+ * @return string
+ */
protected static function formatErrors($errors) {
$messages = array();
* Convert an XML element to an array
*
* @pararm $obj SimpleXMLElement
+ * @param $obj
+ *
* @return array
*/
public static function xmlObjToArray($obj) {