PHP Класс app\models\Player

Наследование: extends Illuminate\Database\Eloquent\Model
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$primaryKey Properties for Eloquent Model.
$timestamps

Защищенные свойства (Protected)

Свойство Тип Описание
$fillable
$models Set of models.

Открытые методы

Метод Описание
clearTexture ( ) : mixed Clear the textures of player.
generateJsonProfile ( integer $api_type ) : string Generate player profile in json format.
getBinaryTexture ( string $type ) : Illuminate\Http\Response Get binary texture by type.
getJsonProfile ( integer $api_type ) : string Get Json profile of player.
getLastModified ( ) : timestamp Get time of last modified.
getPreference ( ) : string Get model preference of the player.
getTexture ( string $type ) : string Get specific texture of player.
isBanned ( ) : boolean Check if the player is banned.
rename ( string $new_name ) : mixed Rename the player.
scopeLike ( $query, $field, $value )
setOwner ( integer $uid ) Set a new owner for the player.
setPreference ( string $type ) Set preferred model for the player.
setTexture ( array $tids ) : mixed Set textures for the player.
updateLastModified ( ) : mixed Update the date of last modified.
user ( ) : App\Models\User Return the owner of the player.

Описание методов

clearTexture() публичный метод

Clear the textures of player.
public clearTexture ( ) : mixed
Результат mixed

generateJsonProfile() публичный метод

Generate player profile in json format.
public generateJsonProfile ( integer $api_type ) : string
$api_type integer
Результат string

getBinaryTexture() публичный метод

Get binary texture by type.
public getBinaryTexture ( string $type ) : Illuminate\Http\Response
$type string steve|alex|cape
Результат Illuminate\Http\Response

getJsonProfile() публичный метод

Get Json profile of player.
public getJsonProfile ( integer $api_type ) : string
$api_type integer Which API to use, 0 for CustomSkinAPI, 1 for UniSkinAPI
Результат string User profile in json format

getLastModified() публичный метод

Get time of last modified.
public getLastModified ( ) : timestamp
Результат timestamp

getPreference() публичный метод

Get model preference of the player.
public getPreference ( ) : string
Результат string

getTexture() публичный метод

Get specific texture of player.
public getTexture ( string $type ) : string
$type string steve|alex|cape
Результат string Sha256-hash of texture file.

isBanned() публичный метод

Check if the player is banned.
public isBanned ( ) : boolean
Результат boolean

rename() публичный метод

Rename the player.
public rename ( string $new_name ) : mixed
$new_name string
Результат mixed

scopeLike() публичный метод

public scopeLike ( $query, $field, $value )

setOwner() публичный метод

Set a new owner for the player.
public setOwner ( integer $uid )
$uid integer

setPreference() публичный метод

Set preferred model for the player.
public setPreference ( string $type )
$type string slim|default

setTexture() публичный метод

Set textures for the player.
public setTexture ( array $tids ) : mixed
$tids array
Результат mixed

updateLastModified() публичный метод

Update the date of last modified.
public updateLastModified ( ) : mixed
Результат mixed

user() публичный метод

Return the owner of the player.
public user ( ) : App\Models\User
Результат App\Models\User

Описание свойств

$fillable защищенное свойство

protected $fillable

$models защищенное статическое свойство

Set of models.
protected static $models

$primaryKey публичное свойство

Properties for Eloquent Model.
public $primaryKey

$timestamps публичное свойство

public $timestamps