PHP 클래스 app\models\Player

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: printempw/blessing-skin-server 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$primaryKey Properties for Eloquent Model.
$timestamps

보호된 프로퍼티들

프로퍼티 타입 설명
$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