XML

    <function name="rpcf_user5_get_accounts" id="-0x4055">
      <input>
      </input>
      <output>
           <integer name="accounts_size" />
           <for name="i" from="0" count="accounts_size">
	     <integer name="account_id" array_index="i" />
	     <double name="balance" array_index="i" />
	     <double name="credit" array_index="i" />
           </for>
      </output>
    </function>

PHP

	function rpcf_user5_get_accounts() { //-0x4055
		$ret=array();
		if (!$this->connection->urfa_call(-0x4055)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$x = $this->connection->urfa_get_data();
		$ret['accounts_size']=$x->DataGetInt();
		for ($i=0;$i<$ret['accounts_size'];$i++) {
//			$x = $this->connection->urfa_get_data();
			$account['account_id'] = $x->DataGetInt();
			$account['balance'] = $x->DataGetDouble();
			$account['credit'] = $x->DataGetDouble();
			$ret['accounts'][]=$account;
		}
//		$this->connection->urfa_get_data();
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_user5/function_name_rpcf_user5_get_accounts_id_-0x4055.txt · Последние изменения: 2009/07/24 11:04 От swibl
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki