XML

<function name="rpcf_add_discount_period_return" id="0x2605">
    <input>
      <integer name="static_id" default="0"/>
      <integer name="start_date" />
      <integer name="expire_date" default="0"/>
      <integer name="periodic_type" default="3"/>
      <integer name="custom_duration" default="86400"/>
      <integer name="discount_interval" default="7"/>
    </input>
    <output>
      <integer name="discount_period_id"/>
    </output>
  </function>

PHP

  	function rpcf_add_discount_period_return($static_id,$start_date,$expire_date,$periodic_type,$custom_duration,$discount_interval) { //0x2605
		$ret=array();
		if (!$this->connection->urfa_call(0x2605)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($static_id);
		$packet->DataSetInt($start_date);
		$packet->DataSetInt($expire_date);
		$packet->DataSetInt($periodic_type);
		$packet->DataSetInt($custom_duration);
		$packet->DataSetInt($discount_interval);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()) {
			$ret['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_add_discount_period_return_id_0x2605.txt · Последние изменения: 2009/07/23 13:06 От 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