Exemple #1
0
 public static function xmlNodeAttrsToArr($node)
 {
     $arr = array();
     foreach ($node->attributes() as $a => $b) {
         $arr[$a] = utilsGmp::xmlAttrToStr($node, $a);
     }
     return $arr;
 }
Exemple #2
0
 /**
  * Check if the element exists in array
  * @param array $param 
  */
 function checkVarFromParam($param, $element)
 {
     return utilsGmp::xmlAttrToStr($param, $element);
     /*if (isset($param[$element])) {
     			// convert object element to string
     			return (string)$param[$element];
     		} else {
     			return '';
     		}*/
 }