XML

 <function name="rpcf_delete_slink" id="0x5100">
      <input>
        <integer name="slink_id"/>
      </input>
      <output>
        <integer name="error_code"/>
        <if variable="error_code" value="0" condition="ne">
          <error code="13" comment="unable to delete service link"/>
        </if>
      </output>
    </function>

PHP

function rpcf_delete_slink($slink_id) { //0x5100
   if (!$this->connection->urfa_call(0x5100)) {
	       print "Error calling function ". __FUNCTION__ ."\n";
	       return FALSE;
    }
    $packet = $this->connection->getPacket();
    $packet->DataSetInt($slink_id);
    $this->connection->urfa_send_param($packet);
   	if ($x = $this->connection->urfa_get_data()) {
			$ret=$x->DataGetInt();
//			$this->connection->urfa_get_data();
		} else {
			return -1; // unable to delete service link
		}
    return $ret;
}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_delete_slink_id_0x5100.txt · Последние изменения: 2009/07/23 14:10 От 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