void handleRequest(
$form
)
|
|
Parameters:
API Tags:
See: | GalleryController::handleRequest |
Redefinition of:
- GalleryController::handleRequest()
- Take the appropriate action based on the user input provided.
Handles the add item request and is expected to be called as a progress-bar callback.
Parameters:
array |
$form: |
|
GalleryItem |
$item: |
The container to which we're adding child-items |
ItemAddPlugin |
$addPlugin: |
The plugin that handles this add item request |
array postprocessItems(
array
$form,
&$status, array
$status
)
|
|
Do post-processing which includes extracting archive-items and letting all ItemAddOption instances handle the added items.
If called from an ItemAddPlugin, the plugin should stop adding items if $error is non-empty.
Parameters:
array |
$form: |
|
array |
$status: |
An array including the list of all added items |
|
&$status: |
|
API Tags:
Return: | GalleryStatus array $error request parameter errors |
See: | ItemAddPlugin::handleRequest() for the structure of the $status array |
void setOptionInstances(
array
$optionInstances
)
|
|
Tests can use this method to hardwire a specific set of option instances to use.
This avoids situations where some of the option instances will do unpredictable things and derail the tests.
Parameters:
array |
$optionInstances: |
(optionId => ItemAddOption, ...) |
Extract files from an archive item and add new items to the same album.
Parameters:
API Tags:
Return: | GalleryStatus a status code array of array('fileName' => '..', 'id' => ##, 'warnings' => array of string) |
Access: | private |
GalleryStatus _recursiveAddDir(
$dir,
$parentId,
&$addedFiles,
&$archiveItem,
$titleMode,
$canAddAlbums
)
|
|
Recursively add files from extracted archive.
Parameters:
|
$dir: |
|
|
$parentId: |
|
|
&$addedFiles: |
|
|
&$archiveItem: |
|
|
$titleMode: |
|
|
$canAddAlbums: |
|
API Tags:
Return: | a status code |
Access: | private |