XML

    <function name="rpcf_user5_get_services" id="-0x4023">
      <input>
      </input>
      <output>
	     <integer name="links_size" />
	     <for name="i" from="0" count="links_size">
	          <integer name="id" array_index="i" />
		  <integer name="service_id" array_index="i" />
		  <integer name="service_type" array_index="i" />
		  <string name="service_name" array_index="i" />
		  <string name="tariff_name" array_index="i" />
		  <string name="discount_period" array_index="i" />
		  <double name="cost" array_index="i" />
		  <double name="discounted_in_curr_period" array_index="i" />
	     </for>
      </output>
    </function>

PHP

	function rpcf_user5_get_services() { //-0x4023
		$ret=array();
		if (!$this->connection->urfa_call(-0x4023)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$x = $this->connection->urfa_get_data();
		$ret['count']=$x->DataGetInt();
		for ($i=0;$i<$ret['count'];$i++) {
//			$x = $this->connection->urfa_get_data();
			$service['id'] = $x->DataGetInt();
			$service['service_id'] = $x->DataGetInt();
			$service['service_type'] = $x->DataGetInt();
			$service['service_name'] = $x->DataGetString();
			$service['tariff_name'] = $x->DataGetString();
			$service['discount_period'] = $x->DataGetString();
			$service['cost'] = $x->DataGetDouble();
			$service['discounted_in_curr_period'] = $x->DataGetDouble();
			$ret['services'][]=$service;
		}
//		$this->connection->urfa_get_data();
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_user5/function_name_rpcf_user5_get_services_id_-0x4023.txt · Последние изменения: 2009/07/24 11:07 От 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