Map
class Map extends AvatarModel implements NamedModel
A BZFlag server map
Constants
TABLE |
The name of the database table used for queries |
AVATAR_LOCATION |
The location where avatars will be stored |
CREATE_PERMISSION |
|
EDIT_PERMISSION |
|
SOFT_DELETE_PERMISSION |
|
HARD_DELETE_PERMISSION |
|
Methods
static Map
addMap(string $name, string|null $alias = null, string $description = '', string|null $avatar = null, string $status = 'active')
Add a new map
string
getName()
Get the name of the map
string
getDescription()
Get the description of the map
setName($name)
Set the name of the map
setDescription(string $description)
Set the description of the map
int
countMatches()
Get the number of matches played on this map
static string[]
getActiveStatuses()
Get the possible statuses representing an active model (visible to everyone)
static QueryBuilder
getQueryBuilder()
Get a query builder for news
Details
at line line 71
static Map
addMap(string $name, string|null $alias = null, string $description = '', string|null $avatar = null, string $status = 'active')
Add a new map
at line line 87
string
getName()
Get the name of the map
at line line 97
string
getDescription()
Get the description of the map
at line line 108
AliasModel
setName($name)
Set the name of the map
at line line 119
Map
setDescription(string $description)
Set the description of the map
at line line 129
int
countMatches()
Get the number of matches played on this map
at line line 140
static string[]
getActiveStatuses()
Get the possible statuses representing an active model (visible to everyone)
at line line 149
static QueryBuilder
getQueryBuilder()
Get a query builder for news