Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userhistory_raid.php [2007/07/05 19:28]
Glarawyn
userhistory_raid.php [2013/09/12 22:49] (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. ​
 
userhistory_raid.php.txt ยท Last modified: 2013/09/12 22:49 (external edit)
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
WikiForumIRCBugs
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki