コード例 #1
0
ファイル: field.php プロジェクト: VSVS/vs_wp_4.0
 /**
  * Check if the element exists in array
  * @param array $param 
  */
 function checkVarFromParam($param, $element)
 {
     return utilsBup::xmlAttrToStr($param, $element);
     /*if (isset($param[$element])) {
     			// convert object element to string
     			return (string)$param[$element];
     		} else {
     			return '';
     		}*/
 }
コード例 #2
0
ファイル: utils.php プロジェクト: carlyns/RESUSblog
 public static function xmlNodeAttrsToArr($node)
 {
     $arr = array();
     foreach ($node->attributes() as $a => $b) {
         $arr[$a] = utilsBup::xmlAttrToStr($node, $a);
     }
     return $arr;
 }