PHP 클래스 app\models\Beatmapset

상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: ppy/osu-web 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$timestamps

보호된 프로퍼티들

프로퍼티 타입 설명
$_storage
$casts
$dates
$fillable
$hidden
$primaryKey
$table

공개 메소드들

메소드 설명
allCoverURLs ( )
approver ( )
beatmaps ( ) * |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | One set has many beatmaps, which in turn have many mods | One set has a single creator.
beatmapsetDiscussion ( ) ranking functions for the set
comments ( $time = null )
coverPath ( )
coverSizes ( )
coverURL ( $coverSize = 'cover' )
currentNominationCount ( )
defaultBeatmaps ( )
defaultJson ( $currentUser = null )
description ( )
disqualify ( User $user, $comment )
events ( )
favourite ( $user )
favourites ( )
hasFavourited ( $user )
isApproved ( )
isGraveyard ( ) one-time checks
isPending ( )
isQualified ( )
isRanked ( )
isValidCoverSize ( $coverSize )
isWIP ( )
listing ( )
mods ( )
nominate ( User $user )
oszDownloadURL ( $noVideo = 1 ) todo: generalize method
previewURL ( )
qualify ( )
rankingETA ( )
ratingsCount ( )
recentEvents ( )
regenerateCovers ( )
replies ( $time = null )
requiredNominationCount ( )
scanBMForBG ( $beatmapFilename ) todo: maybe move this somewhere else (copypasta from old implementation)
scopeActive ( $query )
scopeApproved ( $query )
scopeGraveyard ( $query ) * |-------------------------------------------------------------------------- | Scope Checker Functions |-------------------------------------------------------------------------- | | Checks the approval column, but allows a global filter for | use with the query builder. Beatmapset::all()->unranked() |
scopeQualified ( $query )
scopeRankable ( $query ) Beatmapset::rankable();
scopeRanked ( $query )
scopeRankedOrApproved ( $query )
scopeUnranked ( $query )
scopeWip ( $query )
search ( array $params = [] )
searchDB ( array $params = [] )
searchES ( array $params = [] )
status ( )
storage ( )
storeCover ( $target_filename, $source_path )
unfavourite ( $user )
user ( )
userRatings ( )

비공개 메소드들

메소드 설명
sanitizeSearchParams ( array &$params = [] )

메소드 상세

allCoverURLs() 공개 메소드

public allCoverURLs ( )

approver() 공개 메소드

public approver ( )

beatmaps() 공개 메소드

|
public beatmaps ( )

beatmapsetDiscussion() 공개 메소드

ranking functions for the set

comments() 공개 메소드

public comments ( $time = null )

coverPath() 공개 메소드

public coverPath ( )

coverSizes() 공개 정적인 메소드

public static coverSizes ( )

coverURL() 공개 메소드

public coverURL ( $coverSize = 'cover' )

currentNominationCount() 공개 메소드

defaultBeatmaps() 공개 메소드

public defaultBeatmaps ( )

defaultJson() 공개 메소드

public defaultJson ( $currentUser = null )

description() 공개 메소드

public description ( )

disqualify() 공개 메소드

public disqualify ( User $user, $comment )
$user User

events() 공개 메소드

public events ( )

favourite() 공개 메소드

public favourite ( $user )

favourites() 공개 메소드

public favourites ( )

hasFavourited() 공개 메소드

public hasFavourited ( $user )

isApproved() 공개 메소드

public isApproved ( )

isGraveyard() 공개 메소드

one-time checks
public isGraveyard ( )

isPending() 공개 메소드

public isPending ( )

isQualified() 공개 메소드

public isQualified ( )

isRanked() 공개 메소드

public isRanked ( )

isValidCoverSize() 공개 정적인 메소드

public static isValidCoverSize ( $coverSize )

isWIP() 공개 메소드

public isWIP ( )

listing() 공개 정적인 메소드

public static listing ( )

mods() 공개 메소드

public mods ( )

nominate() 공개 메소드

public nominate ( User $user )
$user User

oszDownloadURL() 공개 메소드

todo: generalize method
public oszDownloadURL ( $noVideo = 1 )

previewURL() 공개 메소드

public previewURL ( )

qualify() 공개 메소드

public qualify ( )

rankingETA() 공개 메소드

public rankingETA ( )

ratingsCount() 공개 메소드

public ratingsCount ( )

recentEvents() 공개 메소드

public recentEvents ( )

regenerateCovers() 공개 메소드

public regenerateCovers ( )

replies() 공개 메소드

public replies ( $time = null )

requiredNominationCount() 공개 메소드

scanBMForBG() 공개 메소드

todo: maybe move this somewhere else (copypasta from old implementation)
public scanBMForBG ( $beatmapFilename )

scopeActive() 공개 메소드

public scopeActive ( $query )

scopeApproved() 공개 메소드

public scopeApproved ( $query )

scopeGraveyard() 공개 메소드

* |-------------------------------------------------------------------------- | Scope Checker Functions |-------------------------------------------------------------------------- | | Checks the approval column, but allows a global filter for | use with the query builder. Beatmapset::all()->unranked() |
public scopeGraveyard ( $query )

scopeQualified() 공개 메소드

public scopeQualified ( $query )

scopeRankable() 공개 메소드

Beatmapset::rankable();
public scopeRankable ( $query )

scopeRanked() 공개 메소드

public scopeRanked ( $query )

scopeRankedOrApproved() 공개 메소드

public scopeRankedOrApproved ( $query )

scopeUnranked() 공개 메소드

public scopeUnranked ( $query )

scopeWip() 공개 메소드

public scopeWip ( $query )

searchDB() 공개 정적인 메소드

public static searchDB ( array $params = [] )
$params array

searchES() 공개 정적인 메소드

public static searchES ( array $params = [] )
$params array

status() 공개 메소드

public status ( )

storage() 공개 메소드

public storage ( )

storeCover() 공개 메소드

public storeCover ( $target_filename, $source_path )

unfavourite() 공개 메소드

public unfavourite ( $user )

user() 공개 메소드

public user ( )

userRatings() 공개 메소드

public userRatings ( )

프로퍼티 상세

$_storage 보호되어 있는 프로퍼티

protected $_storage

$casts 보호되어 있는 프로퍼티

protected $casts

$dates 보호되어 있는 프로퍼티

protected $dates

$fillable 보호되어 있는 프로퍼티

protected $fillable

$hidden 보호되어 있는 프로퍼티

protected $hidden

$primaryKey 보호되어 있는 프로퍼티

protected $primaryKey

$table 보호되어 있는 프로퍼티

protected $table

$timestamps 공개적으로 프로퍼티

public $timestamps