Camp.php
/**
     * Get element attribute
     * @param object node The node where the attr taken.
     * @param array attrs attr-required pair of attribute to get.
     * @return array name-value pair of the element attribute
     */
Get element attribute
@param object node The node where the attr taken.
@param array attrs attr-required pair of attribute to get.
@return array name-value pair of the element attribute
Get element attribute @param object node The node where the attr taken . @param array attrs attr - required pair of attribute to get . @return array name - value pair of the element attribute
private function _getAttribute($node, $attrs){
        $result = array();
        foreach($attrs as $attr => $must){
            $value = $node->getAttribute($attr);
            if($node->hasAttribute($attr) || $must)
                $result[$attr] = $value;
        }
        return $result;
    }
private function _getAttribute ( $ node , $ attrs ) { $ result = array ( ) ; foreach ( $ attrs as $ attr => $ must ) { $ value = $ node -> getAttribute ( $ attr ) ; if ( $ node -> hasAttribute ( $ attr ) || $ must ) $ result [ $ attr ] = $ value ; } return $ result ; }
Get element attribute
 @param object node The node where the attr taken.
Get element attribute @param object node The node where the attr taken .