PHP 클래스 DiscussionsController, vanilla

상속: extends ProjectController
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$Category Category object. Used to limit which discussions are returned to a particular category.
$CategoryID Unique identifier for category.
$ShowOptions Value indicating if discussion options should be displayed when rendering the discussion view.
$Uses to include.

보호된 프로퍼티들

프로퍼티 타입 설명
$categoryIDs Limit the discussions to just this list of categories, checked for view permission.

공개 메소드들

메소드 설명
bookmarked ( $Page = '0' ) Display discussions the user has bookmarked.
bookmarkedPopin ( )
getCategoryIDs ( ) : array
getCommentCounts ( ) Takes a set of discussion identifiers and returns their comment counts in the same order.
index ( integer $Page = false ) Default all discussions view: chronological by most recent comment.
initialize ( ) Highlight route and include JS, CSS, and modules used by all methods.
mine ( $Page = 'p1' ) Display discussions started by the user.
promoted ( ) Endpoint for the PromotedContentModule's data.
setCategoryIDs ( array $categoryIDs )
sort ( string $Target = '' ) Set user preference for sorting discussions.
table ( integer $Page = '0' ) "Table" layout for discussions. Mimics more traditional forum discussion layout.
unread ( $Page = '0' )
userBookmarkCount ( $UserID = false )

메소드 상세

bookmarked() 공개 메소드

Display discussions the user has bookmarked.
부터: 2.0.0
public bookmarked ( $Page = '0' )

bookmarkedPopin() 공개 메소드

public bookmarkedPopin ( )

getCategoryIDs() 공개 메소드

public getCategoryIDs ( ) : array
리턴 array

getCommentCounts() 공개 메소드

Takes a set of discussion identifiers and returns their comment counts in the same order.
public getCommentCounts ( )

index() 공개 메소드

Default all discussions view: chronological by most recent comment.
부터: 2.0.0
public index ( integer $Page = false )
$Page integer Multiplied by PerPage option to determine offset.

initialize() 공개 메소드

Always called by dispatcher before controller's requested method.
부터: 2.0.0
public initialize ( )

mine() 공개 메소드

Display discussions started by the user.
부터: 2.0.0
public mine ( $Page = 'p1' )

promoted() 공개 메소드

Parameters & values must be lowercase and via GET.
또한 보기: PromotedContentModule
public promoted ( )

setCategoryIDs() 공개 메소드

public setCategoryIDs ( array $categoryIDs )
$categoryIDs array

sort() 공개 메소드

Set user preference for sorting discussions.
public sort ( string $Target = '' )
$Target string The target to redirect to.

table() 공개 메소드

"Table" layout for discussions. Mimics more traditional forum discussion layout.
public table ( integer $Page = '0' )
$Page integer Multiplied by PerPage option to determine offset.

unread() 공개 메소드

사용 중단: since 2.3
public unread ( $Page = '0' )

userBookmarkCount() 공개 메소드

public userBookmarkCount ( $UserID = false )

프로퍼티 상세

$Category 공개적으로 프로퍼티

Category object. Used to limit which discussions are returned to a particular category.
public $Category

$CategoryID 공개적으로 프로퍼티

Unique identifier for category.
public $CategoryID

$ShowOptions 공개적으로 프로퍼티

Value indicating if discussion options should be displayed when rendering the discussion view.
public $ShowOptions

$Uses 공개적으로 프로퍼티

to include.
public $Uses

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

Limit the discussions to just this list of categories, checked for view permission.
protected $categoryIDs