XML

    <function name="rpcf_get_prepaid_units" id="0x5500">
      <input>
        <integer name="slink_id" />
      </input>
      <output>
        <integer name="bytes_in_mbyte" />
	<integer name="pinfo_size" />
        <for name="i" from="0" count="pinfo_size">
	  <integer name="id" array_index="i" />
	  <long name="old" array_index="i" />
	  <long name="cur" array_index="i" />
        </for>
      </output>
    </function>

PHP

	function rpcf_get_prepaid_units($slink_id) { //0x5500
		$ret=array(); 
		if (!$this->connection->urfa_call(0x5500)) { 
			print "Error calling function ". __FUNCTION__ ."\n"; 
			return FALSE; 
		} 
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($slink_id); 
		$this->connection->urfa_send_param($packet); 
		if($x = $this->connection->urfa_get_data())
			{ 
		        $ret['bytes_in_mbyte'] = $x->DataGetInt(); 
			$ret['pinfo_size'] = $x->DataGetInt(); 
			for($i=0;$i<$ret['pinfo_size'];$i++) 
				{ 
//				$x = $this->connection->urfa_get_data(); 
				$pinfo['id'] = $x->DataGetInt(); 
				$pinfo['old'] = $x->DataGetLong(); 
				$pinfo['cur'] = $x->DataGetLong(); 
				$ret[]=$pinfo; 
				};
//			$this->connection->urfa_get_data(); 
			}
		return $ret; 
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_prepaid_units_id_0x5500.txt · Последние изменения: 2009/08/11 18:16 От 195.5.125.97
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: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