Class cAjaxRequest
Class for outputting some content for Ajax use
Methods summary
public
string
|
#
handle( string $action )
Handles AJAX requests for certain data. Which data is returned depends upon
the given $action. If the $action is unknown an error message is generated.
Available actions are:
Handles AJAX requests for certain data. Which data is returned depends upon
the given $action. If the $action is unknown an error message is generated.
Available actions are:
- artsel Return a select box containing articles of a category. All params
(name, idcat & value) are required. name = name of select box idcat =
category ID whose articles should be contained value = selected article
- dirlist
- imgdirlist
- filelist
- inused_layout List templates using a given layout.
- inused_module List templates using a given module.
- inused_template List categories and articles using a given template.
- scaleImage
- imagelist
- inlineeditart
- loadImageMeta
- upl_mkdir
- upl_upload
- linkeditorarticleslist
- linkeditordirlist
- linkeditorimagelist
- generaljstranslations
- logfilecontent
- updatepluginorder only sysadmins can do this
- verify_module check module syntax modules are checked by default This can be
deactivated when the system property system/modulecheck is set accordingly. TODO
Describe what "accordingly" means. The rules are a mess!
- authentication_fail Returns a static answer for a not authenticated AJAX
request, e.g. due to an invalid or expired session.
Parameters
- $action
string $action name of requested ajax action
Returns
string
Throws
Todo
split functionality into seperate methods
use registry instead of globals where possible
|