The Guild
class provides functions to configure guilds.
Use add()
or delete()
to add/delete a guilds, set()
to change properties and get()
to retrieve them. getAll()
returns a list of all available guilds
Definition at line 28 of file lib/guild.php.
Public Member Functions | |
Guild (&$oDB, &$oLog, &$oUser) | |
constructor. | |
get ($intId=0) | |
get infos for a guild | |
set ($intId, $strName, $strTag, $strFgColor, $strBgColor, $intDiplomacy) | |
update guild values | |
add ($strName, $strTag, $strFgColor=', $strBgColor=', $intDiplomacy=0) | |
add a new guild | |
delete ($intGuild) | |
delete a guild and move all members to special guild "no guild" | |
getAll () | |
get all guilds | |
Public Attributes | |
$oDB | |
DB object. | |
$oLog | |
Log object. | |
$oUser |
|
constructor. set the objects
Definition at line 41 of file lib/guild.php. |
|
add a new guild
Definition at line 93 of file lib/guild.php. |
|
delete a guild and move all members to special guild "no guild"
Definition at line 129 of file lib/guild.php. |
|
get infos for a guild
Definition at line 53 of file lib/guild.php. References $aRow. |
|
get all guilds
Definition at line 145 of file lib/guild.php. References $aRow, and $sqlResult. |
|
update guild values
Definition at line 76 of file lib/guild.php. |
|
DB object.
Definition at line 30 of file lib/guild.php. Referenced by Guild(). |
|
Log object.
Definition at line 31 of file lib/guild.php. Referenced by Guild(). |
|
Definition at line 32 of file lib/guild.php. Referenced by Guild(). |