\Guild

Guild.

Represents an object from the table 'guild'.

Summary

Methods
Properties
Constants
__construct()
$db
$id
$name
$level
$experience
$recruiting
$total_members
$leader
$comment
$notice
$members
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 — @var int Guild identifier.

$name

$name : integer

Type

integer — @var string Guild name.

$level

$level : integer

Type

integer — @var int Guild level.

$experience

$experience : integer

Type

integer — Guild total experience.

$recruiting

$recruiting : boolean

Type

boolean — Indicates if the guild is ecruiting.

$total_members

$total_members : integer

Type

integer — Number of members.

$leader

$leader : \GUild_Member

Type

\GUild_Member — Guild Leader.

$comment

$comment : string

Type

string — Guild comment.

$notice

$notice : string

Type

string — Guild notice.

$members

$members : array<mixed,\Guild_Member>

Type

array<mixed,\Guild_Member> — List of {@see Guild_Member}s.

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.