wCMF
3.6
|
Public Member Functions | |
initialize (&$request, &$response) | |
hasView () | |
executeKernel () | |
onFileMoved ($cmd, $result, $args, $elfinder) | |
getResourceBaseDir () | |
Public Member Functions inherited from Controller | |
Controller (&$delegate) | |
initialize (&$request, &$response) | |
validate () | |
hasView () | |
execute () | |
executeKernel () | |
getErrorMsg () | |
setErrorMsg ($msg) | |
appendErrorMsg ($msg) | |
& | getRequest () |
& | getResponse () |
& | getView () |
& | getDelegate () |
getViewTemplate ($controller, $context, $action) | |
getCacheId () | |
assignViewDefaults (&$view) | |
isLocalizedRequest () | |
Public Attributes | |
$DIRECTORY_VARNAME = 'ResourceListController.directory' | |
$_directory | |
Public Attributes inherited from Controller | |
$_request = null | |
$_response = null | |
$_errorMsg = '' | |
$_view = null | |
$_delegate = null | |
ResourceListController is a controller used to manage resources from the server and displays it using the resourcelist.tpl template. For file resources it uses elFinder.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Input actions:
Output actions:
[in] | directory | The name of the directory to scan for resources (optinal, if not given the directory is retrieved using the ResourceListController::getResourceBaseDir() method). |
[in,out] | type | The main resource type to list (e.g. link or image, default is image if not given). |
[in,out] | subtype | The sub resource type to list (e.g. content or resource, default is resource if not given). |
[in,out] | fieldName | The name of the input field to set the resource value to. |
[out] | rootPath | The base path for resources. |
[out] | rootUrl | The root url for resources. |
Definition at line 51 of file class.ResourceListController.php.
ResourceListController::initialize | ( | & | $request, |
& | $response | ||
) |
Definition at line 62 of file class.ResourceListController.php.
References SessionData\getInstance(), and getResourceBaseDir().
ResourceListController::hasView | ( | ) |
Definition at line 89 of file class.ResourceListController.php.
ResourceListController::executeKernel | ( | ) |
Process finder actions.
Definition at line 104 of file class.ResourceListController.php.
References URIUtil\getProtocolStr(), getResourceBaseDir(), and URIUtil\makeAbsolute().
ResourceListController::onFileMoved | ( | $cmd, | |
$result, | |||
$args, | |||
$elfinder | |||
) |
Called when file is moved
cmd | elFinder command name |
result | Command result as array |
args | Command arguments from client |
elfinder | elFinder instance |
Definition at line 185 of file class.ResourceListController.php.
References Log\debug().
ResourceListController::getResourceBaseDir | ( | ) |
Get the base directory for resources. The default implementation returns the directory configured by the 'uploadDir' key in section 'media'.
Definition at line 203 of file class.ResourceListController.php.
References InifileParser\getInstance().
Referenced by executeKernel(), and initialize().
ResourceListController::$DIRECTORY_VARNAME = 'ResourceListController.directory' |
Definition at line 54 of file class.ResourceListController.php.
ResourceListController::$_directory |
Definition at line 57 of file class.ResourceListController.php.