XML

    <function name="rpcf_get_user_tariffs" id="0x3017">
      <input>
        <integer name="user_id"/>
        <integer name="account_id" default="0"/>
      </input>
      <output>
        <integer name="count"/>
        <for name="i" from="0" count="count">
          <integer name="tariff_current_array" array_index="i"/>
          <integer name="tariff_next_array" array_index="i"/>
          <integer name="discount_period_id_array" array_index="i"/>
          <integer name="tariff_link_id_array" array_index="i"/>
        </for>
      </output>
    </function>

PHP

	function rpcf_get_user_tariffs($user_id, $account_id=0) { //0x3017
		$ret=array();
		if (!$this->connection->urfa_call(0x3017)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($user_id);
		$packet->DataSetInt($account_id);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()) {
			$count=$x->DataGetInt();
			$ret['count']=$count;
			for($i=0; $i<$count;$i++) {
				$tariff['current_tariff'] = $x->DataGetInt();
				$tariff['next_tariff'] = $x->DataGetInt();
				$tariff['discount_period_id'] = $x->DataGetInt();
				$tariff['tariff_link_id'] = $x->DataGetInt();
				$ret['user_tariffs'][]=$tariff;
			}
//			$this->connection->urfa_get_data();
		}
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_user_tariffs_id_0x3017.txt · Последние изменения: 2011/06/29 13:25 От 86.57.252.109
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии: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