PHP Class PocketsPlugin, addons

Inheritance: extends Gdn_Plugin
Afficher le fichier Open project: vanilla/addons Class Usage Examples

Méthodes publiques

Свойство Type Description
$Locations array
$TestMode Whether or not to display test items for all pockets.

Protected Properties

Свойство Type Description
$StateLoaded boolean
$_Counters Counters for the various locations.
$_PocketNames array
$_Pockets All of the pockets indexed by location.

Méthodes publiques

Méthode Description
__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?

Méthodes protégées

Méthode Description
_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

Method Details

_Edit() protected méthode

protected _Edit ( $Sender, $PocketID ) : mixed
$Sender
$PocketID
Résultat mixed

__construct() public méthode

PocketsPlugin constructor.
public __construct ( )

_add() protected méthode

protected _add ( $Sender ) : mixed
$Sender
Résultat mixed

_addEdit() protected méthode

protected _addEdit ( $Sender, boolean | false $PocketID = false ) : mixed
$Sender
$PocketID boolean | false
Résultat mixed

_delete() protected méthode

protected _delete ( $Sender, $PocketID ) : boolean
$Sender
$PocketID
Résultat boolean

_index() protected méthode

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

_loadState() protected méthode

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

_saveState() protected méthode

derp?
protected _saveState ( )

_var() protected static méthode

protected static _var ( $Name, $Value ) : string
$Name
$Value
Résultat string

addPocket() public méthode

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

base_BeforeRenderAsset_Handler() public méthode

public base_BeforeRenderAsset_Handler ( $Sender )
$Sender

base_GetAppSettingsMenuItems_Handler() public méthode

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

base_afterRenderAsset_handler() public méthode

public base_afterRenderAsset_handler ( $Sender )
$Sender

base_beforeCommentDisplay_handler() public méthode

public base_beforeCommentDisplay_handler ( $Sender )
$Sender

base_betweenDiscussion_handler() public méthode

public base_betweenDiscussion_handler ( $Sender )
$Sender

base_betweenRenderAsset_handler() public méthode

public base_betweenRenderAsset_handler ( $Sender )
$Sender

base_render_before() public méthode

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

getLocationsArray() public méthode

public getLocationsArray ( ) : array
Résultat array

getPockets() public méthode

public getPockets ( $Name ) : mixed
$Name
Résultat mixed

pocketString() public static méthode

public static pocketString ( $Name, null $Data = null ) : mixed | string
$Name
$Data null
Résultat mixed | string

pocketStringCb() public static méthode

public static pocketStringCb ( null $Match = null, boolean | false $SetArgs = false ) : string
$Match null
$SetArgs boolean | false
Résultat string

processPockets() public méthode

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

settingsController_pockets_create() public méthode

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

setup() public méthode

Runs on enable.
public setup ( )

structure() public méthode

Runs on utility/update.
public structure ( )

testData() public méthode

derp?
public testData ( $Sender )
$Sender

Property Details

$Locations public_oe property

public array $Locations
Résultat array

$StateLoaded protected_oe property

protected bool $StateLoaded
Résultat boolean

$TestMode public_oe property

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

$_Counters protected_oe property

Counters for the various locations.
protected $_Counters

$_PocketNames protected_oe property

protected array $_PocketNames
Résultat array

$_Pockets protected_oe property

All of the pockets indexed by location.
protected $_Pockets