XML

    <function name="rpcf_get_accountinfo" id="0x2030">
      <input>
        <integer name="account_id"/>
      </input>
      <output>
        <integer name="unused"/>
        <integer name="is_blocked"/>
        <integer name="dealer_account_id"/>
        <integer name="is_dealer"/>
        <double name="vat_rate"/>
        <double name="sale_tax_rate"/>
        <double name="comission_coefficient"/>
        <double name="default_comission_value"/>
        <double name="credit"/>
        <double name="balance"/>
        <integer name="int_status"/>
        <integer name="block_recalc_abon"/>
        <integer name="block_recalc_prepaid"/>
        <integer name="unlimited"/>
      </output>
    </function>

PHP

	function rpcf_get_accountinfo($account_id) { //0x2030
		$ret=array();
		if (!$this->connection->urfa_call(0x2030)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($account_id);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()) {
			$ret['unused']=$x->DataGetInt();
			$ret['is_blocked']=$x->DataGetInt();
			$ret['dealer_account_id']=$x->DataGetInt();
			$ret['is_dealer']=$x->DataGetInt();
			$ret['vat_rate']=$x->DataGetDouble();
			$ret['sale_tax_rate']=$x->DataGetDouble();
			$ret['comission_coefficient']=$x->DataGetDouble();
			$ret['default_comission_value']=$x->DataGetDouble();
			$ret['credit']=$x->DataGetDouble();
			$ret['balance']=$x->DataGetDouble();
			$ret['int_status']=$x->DataGetInt();
			$ret['block_recalc_abon']=$x->DataGetInt();
			$ret['block_recalc_prepaid']=$x->DataGetInt();
			$ret['unlimited']=$x->DataGetInt();
//			$this->connection->urfa_get_data();
		}
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_accountinfo_id_0x2030.txt · Последние изменения: 2009/07/23 12: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