XML

    <function name="rpcf_get_payment_methods_list" id="0x3100">
      <input>
      </input>
      <output>
          <integer name="payments_list_count" />
          <for name="i" from="0" count="payments_list_count">
	     <integer name="id"  array_index="i" />
	     <string name="name" array_index="i" />
          </for>
      </output>
    </function>

PHP

	function rpcf_get_payment_methods_list() { //0x3100
		$ret=array();
		if (!$this->connection->urfa_call(0x3100)) {
			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++ ) {
			$list['id']=$x->DataGetInt();
			$list['name']=$x->DataGetString();
			$ret['payments_methods'][]=$list;
		}
//		$this->connection->urfa_get_data();
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_payment_methods_list_id_0x3100.txt · Последние изменения: 2009/07/24 08:56 От 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