PHP 클래스 PocketsPlugin, addons

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

공개 프로퍼티들

프로퍼티 타입 설명
$Locations array
$TestMode Whether or not to display test items for all pockets.

보호된 프로퍼티들

프로퍼티 타입 설명
$StateLoaded boolean
$_Counters Counters for the various locations.
$_PocketNames array
$_Pockets All of the pockets indexed by location.

공개 메소드들

메소드 설명
__construct ( ) PocketsPlugin constructor.
addPocket ( Pocket $Pocket ) Add a pocket to the plugin's array of pockets to process.
base_BeforeRenderAsset_Handler ( $Sender )
base_GetAppSettingsMenuItems_Handler ( $Sender ) Adds "Media" menu option to the Forum menu on the dashboard.
base_afterRenderAsset_handler ( $Sender )
base_beforeCommentDisplay_handler ( $Sender )
base_betweenDiscussion_handler ( $Sender )
base_betweenRenderAsset_handler ( $Sender )
base_render_before ( $Sender ) Add test mode to every page.
getLocationsArray ( ) : array
getPockets ( $Name ) : mixed
pocketString ( $Name, null $Data = null ) : mixed | string
pocketStringCb ( null $Match = null, boolean | false $SetArgs = false ) : string
processPockets ( $Sender, $Location, null $CountHint = null )
settingsController_pockets_create ( $Sender, array $Args = [] ) : mixed Main list for a pocket management.
setup ( ) Runs on enable.
structure ( ) Runs on utility/update.
testData ( $Sender ) derp?

보호된 메소드들

메소드 설명
_Edit ( $Sender, $PocketID ) : mixed
_add ( $Sender ) : mixed
_addEdit ( $Sender, boolean | false $PocketID = false ) : mixed
_delete ( $Sender, $PocketID ) : boolean
_index ( $Sender, $Args )
_loadState ( boolean | false $Force = false )
_saveState ( ) derp?
_var ( $Name, $Value ) : string

메소드 상세

_Edit() 보호된 메소드

protected _Edit ( $Sender, $PocketID ) : mixed
$Sender
$PocketID
리턴 mixed

__construct() 공개 메소드

PocketsPlugin constructor.
public __construct ( )

_add() 보호된 메소드

protected _add ( $Sender ) : mixed
$Sender
리턴 mixed

_addEdit() 보호된 메소드

protected _addEdit ( $Sender, boolean | false $PocketID = false ) : mixed
$Sender
$PocketID boolean | false
리턴 mixed

_delete() 보호된 메소드

protected _delete ( $Sender, $PocketID ) : boolean
$Sender
$PocketID
리턴 boolean

_index() 보호된 메소드

protected _index ( $Sender, $Args )
$Sender
$Args

_loadState() 보호된 메소드

protected _loadState ( boolean | false $Force = false )
$Force boolean | false

_saveState() 보호된 메소드

derp?
protected _saveState ( )

_var() 보호된 정적인 메소드

protected static _var ( $Name, $Value ) : string
$Name
$Value
리턴 string

addPocket() 공개 메소드

Add a pocket to the plugin's array of pockets to process.
public addPocket ( Pocket $Pocket )
$Pocket Pocket

base_BeforeRenderAsset_Handler() 공개 메소드

public base_BeforeRenderAsset_Handler ( $Sender )
$Sender

base_GetAppSettingsMenuItems_Handler() 공개 메소드

Adds "Media" menu option to the Forum menu on the dashboard.
public base_GetAppSettingsMenuItems_Handler ( $Sender )
$Sender

base_afterRenderAsset_handler() 공개 메소드

public base_afterRenderAsset_handler ( $Sender )
$Sender

base_beforeCommentDisplay_handler() 공개 메소드

public base_beforeCommentDisplay_handler ( $Sender )
$Sender

base_betweenDiscussion_handler() 공개 메소드

public base_betweenDiscussion_handler ( $Sender )
$Sender

base_betweenRenderAsset_handler() 공개 메소드

public base_betweenRenderAsset_handler ( $Sender )
$Sender

base_render_before() 공개 메소드

Add test mode to every page.
public base_render_before ( $Sender )
$Sender

getLocationsArray() 공개 메소드

public getLocationsArray ( ) : array
리턴 array

getPockets() 공개 메소드

public getPockets ( $Name ) : mixed
$Name
리턴 mixed

pocketString() 공개 정적인 메소드

public static pocketString ( $Name, null $Data = null ) : mixed | string
$Name
$Data null
리턴 mixed | string

pocketStringCb() 공개 정적인 메소드

public static pocketStringCb ( null $Match = null, boolean | false $SetArgs = false ) : string
$Match null
$SetArgs boolean | false
리턴 string

processPockets() 공개 메소드

public processPockets ( $Sender, $Location, null $CountHint = null )
$Sender
$Location
$CountHint null

settingsController_pockets_create() 공개 메소드

Main list for a pocket management.
public settingsController_pockets_create ( $Sender, array $Args = [] ) : mixed
$Args array
리턴 mixed

setup() 공개 메소드

Runs on enable.
public setup ( )

structure() 공개 메소드

Runs on utility/update.
public structure ( )

testData() 공개 메소드

derp?
public testData ( $Sender )
$Sender

프로퍼티 상세

$Locations 공개적으로 프로퍼티

public array $Locations
리턴 array

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

protected bool $StateLoaded
리턴 boolean

$TestMode 공개적으로 프로퍼티

Whether or not to display test items for all pockets.
public $TestMode

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

Counters for the various locations.
protected $_Counters

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

protected array $_PocketNames
리턴 array

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

All of the pockets indexed by location.
protected $_Pockets