XML

    <function name="rpcf_get_currency_list" id="0x2910">
      <input>
      </input>
      <output>
	 <integer name="currency_size" />
	 <for name="i" from="0" count="currency_size">
	   <integer name="id" />
	   <string name="currency_brief_name" array_index="i" />
	   <string name="currency_full_name" array_index="i" />
	   <double name="percent" array_index="i" />
	   <double name="rates" array_index="i" />
         </for>
      </output>
    </function>

PHP

	function rpcf_get_currency_list() { //0x2910
		$ret=array();
		if (!$this->connection->urfa_call(0x2910)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$x = $this->connection->urfa_get_data();
		$count = $x->DataGetInt();
		$ret['count']= $count;
		for ($i=0;$i<$count;$i++) {
//			$x = $this->connection->urfa_get_data();
			$currency['id'] = $x->DataGetInt();
			$currency['currency_brief_name'] = $x->DataGetString();
			$currency['currency_full_name'] = $x->DataGetString();
			$currency['percent'] = $x->DataGetDouble();
			$currency['rates'] = $x->DataGetDouble();
			$ret['currency'][]=$currency;
		}
//		$this->connection->urfa_get_data();
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_currency_list_id_0x2910.txt · Последние изменения: 2009/07/23 15:54 От 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