static array calculateStateChanges(
array
$beforeStates, array
$afterStates
)
|
|
Given two sets of states, figure out what's changed from before to after.
Parameters:
array |
$beforeStates: |
(moduleId => state, ...) |
array |
$afterStates: |
(moduleId => state, ...) |
API Tags:
Return: | changed states (moduleId => state, ...) |
Redefined in descendants as:
static array getPluginState(
string
$type, GalleryPlugin
$plugin, array
$status
)
|
|
Get the state ('active', 'inactive', 'uninstalled', etc) of a given module
Parameters:
string |
$type: |
('module' or 'theme') |
GalleryPlugin |
$plugin: |
|
array |
$status: |
status of the plugin (from GalleryCoreApi::fetchPluginStatus) |
API Tags:
Return: | GalleryStatus a status code string a state |
static array getPluginStates(
)
|
|
Get the state ('active', 'inactive', 'uninstalled', etc) of all modules
API Tags:
Return: | GalleryStatus a status code array(moduleId => state, ...) |
Redefined in descendants as:
static GalleryStatus handleCallback(
string
$command,
&$result, array
$result
)
|
|
Handle the specific callback, and store its result in the given output array.
Parameters:
string |
$command: |
(eg. "installModule") |
array |
$result: |
the location for result data to be sent back to the browser |
|
&$result: |
|
API Tags:
Redefined in descendants as:
API Tags:
See: | GalleryView::isControllerLike |
Redefinition of:
- GalleryView::isControllerLike()
- Does this view change any data? Only controllers should change data, but AJAX and some immediate views are handled in views in Gallery.
void renderImmediate(
$status,
$error
)
|
|
Parameters:
API Tags:
See: | GalleryView::renderImmediate |
Redefinition of:
- GalleryView::renderImmediate()
- Print out the immediate output for this view. This will bypass any global templating. This style of view should be reserved for binary data.