wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
ResourceListController Class Reference
+ Inheritance diagram for ResourceListController:

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
 

Detailed Description

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.

Id:
class.ResourceListController.php 1462 2014-02-04 23:52:27Z iherwig

Input actions:

  • unspecified: List all resources in the given directory

Output actions:

  • ok In any case
Parameters
[in]directoryThe name of the directory to scan for resources (optinal, if not given the directory is retrieved using the ResourceListController::getResourceBaseDir() method).
[in,out]typeThe main resource type to list (e.g. link or image, default is image if not given).
[in,out]subtypeThe sub resource type to list (e.g. content or resource, default is resource if not given).
[in,out]fieldNameThe name of the input field to set the resource value to.
[out]rootPathThe base path for resources.
[out]rootUrlThe root url for resources.
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 51 of file class.ResourceListController.php.

Member Function Documentation

ResourceListController::initialize ( $request,
$response 
)
See Also
Controller::initialize()

Definition at line 62 of file class.ResourceListController.php.

References SessionData\getInstance(), and getResourceBaseDir().

+ Here is the call graph for this function:

ResourceListController::hasView ( )
See Also
Controller::hasView()

Definition at line 89 of file class.ResourceListController.php.

ResourceListController::executeKernel ( )

Process finder actions.

Returns
True in every case.
See Also
Controller::executeKernel()

Definition at line 104 of file class.ResourceListController.php.

References URIUtil\getProtocolStr(), getResourceBaseDir(), and URIUtil\makeAbsolute().

+ Here is the call graph for this function:

ResourceListController::onFileMoved (   $cmd,
  $result,
  $args,
  $elfinder 
)

Called when file is moved

Parameters
cmdelFinder command name
resultCommand result as array
argsCommand arguments from client
elfinderelFinder instance
Returns
void|true

Definition at line 185 of file class.ResourceListController.php.

References Log\debug().

+ Here is the call graph for this function:

ResourceListController::getResourceBaseDir ( )

Get the base directory for resources. The default implementation returns the directory configured by the 'uploadDir' key in section 'media'.

Returns
The directory name
Note
Subclasses will override this method to implement special application requirements

Definition at line 203 of file class.ResourceListController.php.

References InifileParser\getInstance().

Referenced by executeKernel(), and initialize().

+ Here is the call graph for this function:

Member Data Documentation

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.


The documentation for this class was generated from the following file: