XML

    <function name="rpcf_get_user_by_account" id="0x2026">
      <input>
        <integer name="account_id"/>
      </input>
      <output>
        <integer name="user_id"/>
        <if variable="user_id" value="0" condition="eq">
          <error code="19" comment="No such account linked with user"/>
        </if>
      </output>
    </function>

PHP

	// return user_id or 0 if user not found
	function rpcf_get_user_by_account($account_id) { //0x2026
		$ret=array();
		if (!$this->connection->urfa_call(0x2026)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($account_id);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()) {
			$user_id = $x->DataGetInt();
		}
//		$this->connection->urfa_get_data();
		return $user_id;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_user_by_account_id_0x2026.txt · Последние изменения: 2009/07/23 12:51 От 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