com.woltlab.wcf.user.infraction.data.user.infraction.warning
Represents a predefined warning.
DatabaseObject | --Warning
| Class | Description |
|---|---|
WarningEditor |
Provides functions to add, edit and delete warnings. |
| Type | Name |
|---|---|
static array<WarningObjectType> |
$availableWarningObjectTypes |
| Return | Name |
|---|---|
Warning |
__construct(integer $warningID, [array<mixed> $row = null])
|
static array<WarningObjectType> |
getAvailableWarningObjectTypes()
|
static mixed |
getWarningObjectByID(string $objectType, mixed $objectID)
|
static WarningObjectType |
getWarningObjectTypeObject(string $objectType)
|
static array<Warning> |
getWarnings()
|
string |
__toString()
|
public static array<WarningObjectType> $availableWarningObjectTypes = null
list of available warning object types
public Warning __construct(integer $warningID, [array<mixed> $row = null])
Creates a new Warning object.
$warningID $row Redefinition of: DatabaseObject::__construct()
public static array<WarningObjectType> getAvailableWarningObjectTypes()
Returns a list of available warning object types.
public static mixed getWarningObjectByID(string $objectType, mixed $objectID)
Gets warning objects by their ids.
$objectType $objectID public static WarningObjectType getWarningObjectTypeObject(string $objectType)
Returns the object of a warning object type.
$objectType public static array<Warning> getWarnings()
Returns a list of warnings.
public string __toString()
Returns the title of this warning.
DatabaseObject::__construct(), DatabaseObject::handleData(), DatabaseObject::sort(), DatabaseObject::__get()