userhistory_raid.php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
userhistory_raid.php [2007/07/05 19:23]
Glarawyn created
userhistory_raid.php [2020/09/12 01:30] (current)
Line 1: Line 1:
 +====== User Reference ======
  
 +==== Description ====
 +
 +Functions for adding and displaying a user's raid history. 
 +
 +===== Commands provided =====
 +
 +^Command  ^ Keyword  ^Argument(s)   ^Description                          ^Tell      ^Guild     ^Priv      ^
 +|!raidhistory|          |              |Displays your raid history.           |Guest     |Disabled    |Disabled     |
 +|!raidhistory|<user>   | |Displays raid history for <user>. |Guest     |Disabled    |Disabled     |
 +
 +====== Developer Reference ======
 +
 +==== Functions ====
 +**function show()**
 +<code php>
 +string show(string $name[, string $user]) 
 +</code>
 +Returns user history for output. $name should be the character name of the player calling the function (requesting history.) Default is to return history for $name. Passing $name and $user will return history for $user if $name's access level is LEADER or higher. 
 +
 +**function get()**
 +<code php>
 +string get(string $name, [string $bot="all"] [,int $list=30]) 
 +</code>
 +Queries the database and does basic formatting of user history of $name. Optional parameters are $bot for getting history for only a specific bot and $list for limiting the number of returned events (default 30.)
 +
 +**function add()**
 +<code php>
 +null add (string $activename, string $leadername, string $eventtype, int $pointval, text $info)
 +</code>
 +Adds a history event to a user. $activename is the character the event is logged for. $leadername is the leader responsible. $eventtype is the type of event (ADDPTS, RAIDKICK, LOOT, REMPTS, BAN, ADD_XFER, REM_XFER, ALT_ADD, ALT_REM), $pointval is the change in points (always >= zero), and $info is information about the event.