XML

    <function name="rpcf_user5_blocks_report" id="-0x4013">
      <input>
	   <integer name="time_start" />
	   <integer name="time_end" />
      </input>
      <output>
	     <integer name="blocks_size" />
	     <for name="i" from="0" count="blocks_size">
	        <integer name="account_id" array_index="i" />
		<integer name="start_date" array_index="i" />
		<integer name="expire_date" array_index="i" />
		<integer name="what_blocked" array_index="i" />
		<integer name="block_type" array_index="i" />
		<string name="comment" array_index="i" />
	     </for>
      </output>
    </function>

PHP

	function rpcf_user5_blocks_report($start_date,$end_date) { //-0x4013
		$ret=array();
		if (!$this->connection->urfa_call(-0x4013)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($start_date);
		$packet->DataSetInt($end_date);
		$this->connection->urfa_send_param($packet);
		$x = $this->connection->urfa_get_data();
		$ret['count']=$x->DataGetInt();
		for ($i=0;$i<$ret['count'];$i++) {
//			$x = $this->connection->urfa_get_data();
			$block['account_id'] = $x->DataGetInt();
			$block['start_date'] = $x->DataGetInt();
			$block['expire_date'] = $x->DataGetInt();
			$block['what_blocked'] = $x->DataGetInt();
			$block['block_type'] = $x->DataGetInt();
			$block['comment'] = $x->DataGetString();
			$ret['block'][]=$block;
		}
//		$this->connection->urfa_get_data();
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_user5/function_name_rpcf_user5_blocks_report_id_-0x4013.txt · Последние изменения: 2009/07/24 09:30 От 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