XML

    <function name="rpcf_get_discount_period" id="0x2602">
      <input>
        <integer name="discount_period_id"/>
      </input>
      <output>
        <integer name="start_date"/>
        <integer name="end_date"/>
        <integer name="periodic_type"/>
        <integer name="custom_duration"/>
        <integer name="discounts_per_week"/>
        <integer name="next_discount_period_id"/>
      </output>
    </function>

PHP

	function rpcf_get_discount_period($period_id) { //0x2602
		$ret=array();
		if (!$this->connection->urfa_call(0x2602)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($period_id);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()) {
			$ret['start_date'] = $x->DataGetInt();
			$ret['end_date'] = $x->DataGetInt();
			$ret['periodic_type'] = $x->DataGetInt();
			$ret['custom_duration'] = $x->DataGetInt();
			$ret['discounts_per_week'] = $x->DataGetInt();
			$ret['next_discount_period_id'] = $x->DataGetInt();
//			$this->connection->urfa_get_data();
		}
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_discount_period_id_0x2602.txt · Последние изменения: 2009/07/23 13:03 От 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