PHP 클래스 VanillaSettingsController, vanilla

상속: extends Gdn_Controller
파일 보기 프로젝트 열기: vanilla/vanilla

공개 프로퍼티들

프로퍼티 타입 설명
$CategoryModel CategoryModel
$Form Gdn_Form
$ShowCustomPoints boolean
$Uses Models to include.

공개 메소드들

메소드 설명
addCategory ( $parent = '' ) Adding a new category.
addSideMenu ( string $currentUrl = '' )
advanced ( ) Advanced settings.
archive ( )
categories ( string $parent = '' ) Manage the category hierarchy.
categoriesTree ( ) Sorting display order of categories.
categoryDisplayAs ( ) Set the display as property of a category.
deleteCategory ( integer $CategoryID = false ) Deleting a category.
deleteCategoryPhoto ( String $CategoryID = '' ) Delete a category photo.
editCategory ( integer | string $CategoryID = '' ) Editing a category.
enableCategories ( boolean $enabled ) Enable or disable the use of categories in Vanilla.
floodControl ( ) Display flood control options.
getCategory ( integer $categoryID ) Get a single category for administration.
index ( ) Alias for ManageCategories method.
initialize ( ) Switch MasterView. Include JS, CSS used by all methods.
manageCategories ( ) Enabling and disabling categories from list.
moveCategory ( integer $categoryID ) Move a category to a different parent.
setHighlightRoute ( string $currentUrl = '' )
sortCategories ( ) Sorting display order of categories.

보호된 메소드들

메소드 설명
setupDiscussionTypes ( $Category )

비공개 메소드들

메소드 설명
categoryPageByParent ( array | object $category ) : string Move through the category's parents to determine the proper management page URL.

메소드 상세

addCategory() 공개 메소드

Adding a new category.
부터: 2.0.0
public addCategory ( $parent = '' )

addSideMenu() 공개 메소드

public addSideMenu ( string $currentUrl = '' )
$currentUrl string

advanced() 공개 메소드

Allows setting configuration values via form elements.
부터: 2.0.0
public advanced ( )

archive() 공개 메소드

public archive ( )

categories() 공개 메소드

Manage the category hierarchy.
public categories ( string $parent = '' )
$parent string The URL slug of a parent category if looking at a sub tree.

categoriesTree() 공개 메소드

Sorting display order of categories.
public categoriesTree ( )

categoryDisplayAs() 공개 메소드

Set the display as property of a category.
public categoryDisplayAs ( )

deleteCategory() 공개 메소드

Deleting a category.
부터: 2.0.0
public deleteCategory ( integer $CategoryID = false )
$CategoryID integer Unique ID of the category to be deleted.

deleteCategoryPhoto() 공개 메소드

Delete a category photo.
부터: 2.1
public deleteCategoryPhoto ( String $CategoryID = '' )
$CategoryID String Unique ID of the category to have its photo deleted.

editCategory() 공개 메소드

Editing a category.
부터: 2.0.0
public editCategory ( integer | string $CategoryID = '' )
$CategoryID integer | string Unique ID of the category to be updated.

enableCategories() 공개 메소드

Enable or disable the use of categories in Vanilla.
public enableCategories ( boolean $enabled )
$enabled boolean Whether or not to enable/disable categories.

floodControl() 공개 메소드

Display flood control options.
부터: 2.0.0
public floodControl ( )

getCategory() 공개 메소드

This endpoint is intended for API access.
public getCategory ( integer $categoryID )
$categoryID integer The category to find.

index() 공개 메소드

Alias for ManageCategories method.
부터: 2.0.0
public index ( )

initialize() 공개 메소드

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

manageCategories() 공개 메소드

Enabling and disabling categories from list.
부터: 2.0.0
public manageCategories ( )

moveCategory() 공개 메소드

Move a category to a different parent.
public moveCategory ( integer $categoryID )
$categoryID integer Unique ID for the category to move.

setHighlightRoute() 공개 메소드

public setHighlightRoute ( string $currentUrl = '' )
$currentUrl string

setupDiscussionTypes() 보호된 메소드

protected setupDiscussionTypes ( $Category )
$Category

sortCategories() 공개 메소드

Accessed by ajax so its default is to only output true/false.
부터: 2.0.0
public sortCategories ( )

프로퍼티 상세

$CategoryModel 공개적으로 프로퍼티

public CategoryModel $CategoryModel
리턴 CategoryModel

$Form 공개적으로 프로퍼티

public Gdn_Form $Form
리턴 Gdn_Form

$ShowCustomPoints 공개적으로 프로퍼티

public bool $ShowCustomPoints
리턴 boolean

$Uses 공개적으로 프로퍼티

Models to include.
public $Uses