PHP 클래스 App\Models\Forum\Forum

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

공개 프로퍼티들

프로퍼티 타입 설명
$timestamps

보호된 프로퍼티들

프로퍼티 타입 설명
$casts
$dateFormat
$dates
$guarded
$primaryKey
$table

공개 메소드들

메소드 설명
allSubforums ( $forum_ids = null, $new_forum_ids = null )
category ( )
categoryId ( )
categorySlug ( )
cover ( )
currentDepth ( )
getForumParentsAttribute ( string $value ) : array Returns array which keys are id of this forum's parents and values are their names and types. Sorted from topmost parent to immediate parent.
isFeatureForum ( ) feature forum shall have extra features like sorting and voting
isOpen ( )
lastTopic ( $recursive = true )
parentForum ( )
refreshCache ( )
scopeMoveDestination ( $query )
setForumParentsAttribute ( $value )
setLastPostCache ( )
setPostsCountCache ( )
setTopicsCountCache ( )
subforums ( )
topics ( )

메소드 상세

allSubforums() 공개 메소드

public allSubforums ( $forum_ids = null, $new_forum_ids = null )

category() 공개 메소드

public category ( )

categoryId() 공개 메소드

public categoryId ( )

categorySlug() 공개 메소드

public categorySlug ( )

cover() 공개 메소드

public cover ( )

currentDepth() 공개 메소드

public currentDepth ( )

getForumParentsAttribute() 공개 메소드

This method isn't intended to be directly called but through Laravel's attribute accessor method (in this case, $forum->forum_parents) warning: don't access this attribute (forum_parents) without selecting parent_id otherwise returned value may be wrong.
public getForumParentsAttribute ( string $value ) : array
$value string
리턴 array

isFeatureForum() 공개 메소드

feature forum shall have extra features like sorting and voting
public isFeatureForum ( )

isOpen() 공개 메소드

public isOpen ( )

lastTopic() 공개 메소드

public lastTopic ( $recursive = true )

parentForum() 공개 메소드

public parentForum ( )

refreshCache() 공개 메소드

public refreshCache ( )

scopeMoveDestination() 공개 메소드

public scopeMoveDestination ( $query )

setForumParentsAttribute() 공개 메소드

public setForumParentsAttribute ( $value )

setLastPostCache() 공개 메소드

public setLastPostCache ( )

setPostsCountCache() 공개 메소드

public setPostsCountCache ( )

setTopicsCountCache() 공개 메소드

public setTopicsCountCache ( )

subforums() 공개 메소드

public subforums ( )

topics() 공개 메소드

public topics ( )

프로퍼티 상세

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

protected $casts

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

protected $dateFormat

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

protected $dates

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

protected $guarded

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

protected $primaryKey

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

protected $table

$timestamps 공개적으로 프로퍼티

public $timestamps