Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AdminSettingsTabHandler Class Reference
Inheritance diagram for AdminSettingsTabHandler:
SettingsTabHandler Handler PKPHandler

Public Member Functions

_getFileUploadForm ($request)
 
 AdminSettingsTabHandler ($additionalTabs=array())
 
 deleteFile ($args, $request)
 
 fetchFile ($args, $request)
 
 initialize ($request, $args=null)
 
 saveFile ($args, $request)
 
 showFileUploadForm ($args, $request)
 
 uploadFile ($args, $request)
 
- Public Member Functions inherited from SettingsTabHandler
 _getFormClassName ($classPath)
 
 _getTabTemplate ()
 
 _isManagementHandler ()
 
 _isTabTemplate ()
 
 _isValidTab ()
 
 getCurrentTab ()
 
 getPageTabs ()
 
 getTabForm ()
 
 initialize ($request)
 
 saveFormData ($args, $request)
 
 setCurrentTab ($currentTab)
 
 setPageTabs ($pageTabs)
 
 SettingsTabHandler ($role)
 
 showTab ($args, $request)
 
- Public Member Functions inherited from Handler
 getSiteRedirectContext ($request)
 
 getTargetContext ($request, $bestGuess=true)
 
 getWorkingContexts ($request)
 
 Handler ()
 
- Public Member Functions inherited from PKPHandler
 addCheck (&$handlerValidator)
 
 addPolicy ($authorizationPolicy, $addToTop=false)
 
 addRoleAssignment ($roleIds, $operations)
 
 authorize ($request, &$args, $roleAssignments, $enforceRestrictedSite=true)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
getDispatcher ()
 
 getFirstUserContext ($user, $contexts)
 
 getId ()
 
 getLastAuthorizationMessage ()
 
 getLoginExemptions ()
 
 getRoleAssignment ($roleId)
 
 getRoleAssignments ()
 
 getWorkingContexts ($request)
 
 index ($args, $request)
 
 initialize ($request, $args=null)
 
 PKPHandler ()
 
 setDispatcher ($dispatcher)
 
 setId ($id)
 
 setupTemplate ($request)
 
 validate ($requiredContexts=null, $request=null)
 

Additional Inherited Members

- Static Public Member Functions inherited from PKPHandler
static getPageParamName ($rangeName)
 
static getRangeInfo ($request, $rangeName, $contextData=null)
 
static hashPageContext ($request, $contextData=array())
 
- Public Attributes inherited from PKPHandler
 $_authorizationDecisionManager
 
 $_checks = array()
 
 $_dispatcher
 
 $_id
 
 $_roleAssignments = array()
 

Detailed Description

Handle AJAX operations for tabs on administration settings pages.

Definition at line 19 of file AdminSettingsTabHandler.inc.php.

Member Function Documentation

& AdminSettingsTabHandler::_getFileUploadForm (   $request)

Returns a file upload form based on the uploaded file type.

Parameters
$requestRequest
Returns
Form

Definition at line 183 of file AdminSettingsTabHandler.inc.php.

Referenced by saveFile(), showFileUploadForm(), and uploadFile().

AdminSettingsTabHandler::AdminSettingsTabHandler (   $additionalTabs = array())

Constructor

Parameters
$additionalTabsarray Optional additional ('tabname' => 'class/template name') mappings

Definition at line 25 of file AdminSettingsTabHandler.inc.php.

References PKPHandler\addRoleAssignment(), and SettingsTabHandler\setPageTabs().

AdminSettingsTabHandler::deleteFile (   $args,
  $request 
)

Deletes a context image.

Parameters
$argsarray
$requestPKPRequest
Returns
string

Definition at line 134 of file AdminSettingsTabHandler.inc.php.

References DAO\getDataChangedEvent(), and SettingsTabHandler\getTabForm().

AdminSettingsTabHandler::fetchFile (   $args,
  $request 
)

Fetch a file that have been uploaded.

Parameters
$argsarray
$requestRequest
Returns
string

Definition at line 154 of file AdminSettingsTabHandler.inc.php.

References SettingsTabHandler\getTabForm().

AdminSettingsTabHandler::initialize (   $request,
  $args = null 
)

Subclasses can override this method to configure the handler.

NB: This method will be called after validation and authorization.

Parameters
$requestPKPRequest
$argsarray

Definition at line 53 of file AdminSettingsTabHandler.inc.php.

References AppLocale\requireComponents().

AdminSettingsTabHandler::saveFile (   $args,
  $request 
)

Save an uploaded file.

Parameters
$argsarray
$requestPKPRequest
Returns
string

Definition at line 113 of file AdminSettingsTabHandler.inc.php.

References _getFileUploadForm(), and DAO\getDataChangedEvent().

AdminSettingsTabHandler::showFileUploadForm (   $args,
  $request 
)

Show the upload image form.

Parameters
$requestRequest
$argsarray
Returns
string JSON message

Definition at line 75 of file AdminSettingsTabHandler.inc.php.

References _getFileUploadForm(), and JSONMessage\getString().

AdminSettingsTabHandler::uploadFile (   $args,
  $request 
)

Upload a new file.

Parameters
$argsarray
$requestPKPRequest
Returns
string

Definition at line 89 of file AdminSettingsTabHandler.inc.php.

References _getFileUploadForm().


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