コード例 #1
0
ファイル: Builtin.php プロジェクト: djeraseit/quickbooks-php
 protected function _extractAttributes($tag_w_attrs, &$tag, &$attributes)
 {
     $tag = '';
     $attributes = array();
     $tmp = QuickBooks_XML::extractTagAttributes($tag_w_attrs, true);
     $tag = array_shift($tmp);
     $attributes = $tmp;
     /*
     print('extracting attributes from: {{' . $tag_w_attrs . '}}' . "\n");
     print('	tag: [[' . $tag . ']]' . "\n");
     print('	attrs: ' . print_r($attributes, true) . "\n");
     print("\n");
     */
     return true;
 }
コード例 #2
0
<?php

require_once '../QuickBooks.php';
$data = '<QBXML><something>stuff</something><CustomerQueryRs iteratorRemainingCount="364q34" iteratorID="{1234-1234-1234}">...</CustomerQueryRs></QBXML>';
print 'contents: ' . QuickBooks_XML::extractTagContents('something', $data) . "\n";
print 'attribute: ' . QuickBooks_XML::extractTagAttribute('iteratorRemainingCount', $data) . "\n";
$data = '<CustomerQueryRs iteratorRemainingCount="123" iteratorID="{1234-1234-1234}">';
print 'attribuets: ' . print_r(QuickBooks_XML::extractTagAttributes($data, true), true) . "\n";