PHP Class App\Models\Forum\Forum

Inheritance: extends Illuminate\Database\Eloquent\Model
Exibir arquivo Open project: ppy/osu-web Class Usage Examples

Public Properties

Property Type Description
$timestamps

Protected Properties

Property Type Description
$casts
$dateFormat
$dates
$guarded
$primaryKey
$table

Public Methods

Method Description
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 ( )

Method Details

allSubforums() public method

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

category() public method

public category ( )

categoryId() public method

public categoryId ( )

categorySlug() public method

public categorySlug ( )

cover() public method

public cover ( )

currentDepth() public method

public currentDepth ( )

getForumParentsAttribute() public method

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
return array

isFeatureForum() public method

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

isOpen() public method

public isOpen ( )

lastTopic() public method

public lastTopic ( $recursive = true )

parentForum() public method

public parentForum ( )

refreshCache() public method

public refreshCache ( )

scopeMoveDestination() public method

public scopeMoveDestination ( $query )

setForumParentsAttribute() public method

public setForumParentsAttribute ( $value )

setLastPostCache() public method

public setLastPostCache ( )

setPostsCountCache() public method

public setPostsCountCache ( )

setTopicsCountCache() public method

public setTopicsCountCache ( )

subforums() public method

public subforums ( )

topics() public method

public topics ( )

Property Details

$casts protected_oe property

protected $casts

$dateFormat protected_oe property

protected $dateFormat

$dates protected_oe property

protected $dates

$guarded protected_oe property

protected $guarded

$primaryKey protected_oe property

protected $primaryKey

$table protected_oe property

protected $table

$timestamps public_oe property

public $timestamps