\Guild_Member

Guild.

Represents an object from the table 'guild'.

Summary

Methods
Properties
Constants
__construct()
$db
$id
$guild
$name
$level
$grade
$rating
$arena_score
$joined
$last_login
$in_war
$has_defense
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$db

$db : resource

Type

resource — Database connection.

$id

$id : integer

Type

integer — Member identifier.

$guild

$guild : integer

Type

integer — Guild id.

$name

$name : string

Type

string — Member name.

$level

$level : integer

Type

integer — Member level.

$grade

$grade : integer

Type

integer — Member grade.

$rating

$rating : integer

Type

integer — Memeber rating.

$arena_score

$arena_score : integer

Type

integer — Memebr arena score.

$joined

$joined : \DateTime

Type

\DateTime — Time the user joined the guild at.

$last_login

$last_login : \Datetime

Type

\Datetime — Time the user last log on at.

$in_war

$in_war : boolean

Type

boolean — Indicates if the member is included in guild wars.

$has_defense

$has_defense : boolean

Type

boolean — Indicates if the member has set guild wars defenses.

Methods

__construct()

__construct(resource  $db, integer  $id) 

Constructor.

Searches the database and retrieves the information about the guild, populating it and it's items.

Parameters

resource $db

Connection to the database.

integer $id

Guild identifier.