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

Public Member Functions

_getFileUploadForm ($request)
 
 deleteFile ($args, $request)
 
 fetchFile ($args, $request)
 
 reloadLocalizedDefaultSettings ($args, $request)
 
 saveFile ($args, $request)
 
 showFileUploadForm ($args, $request)
 
 showTab ($args, $request)
 
 uploadFile ($args, $request)
 
 WebsiteSettingsTabHandler ()
 
- Public Member Functions inherited from ManagerSettingsTabHandler
 authorize ($request, &$args, $roleAssignments)
 
 getWizardMode ()
 
 initialize ($request, $args=null)
 
 ManagerSettingsTabHandler ()
 
 setWizardMode ($wizardMode)
 
- 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 Website settings page.

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

Member Function Documentation

& WebsiteSettingsTabHandler::_getFileUploadForm (   $request)

Returns a file upload form.

Parameters
$requestRequest
Returns
Form

Definition at line 211 of file WebsiteSettingsTabHandler.inc.php.

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

WebsiteSettingsTabHandler::deleteFile (   $args,
  $request 
)

Deletes a press image.

Parameters
$argsarray
$requestPKPRequest
Returns
string

Definition at line 129 of file WebsiteSettingsTabHandler.inc.php.

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

WebsiteSettingsTabHandler::fetchFile (   $args,
  $request 
)

Fetch a file that have been uploaded.

Parameters
$argsarray
$requestRequest
Returns
string

Definition at line 149 of file WebsiteSettingsTabHandler.inc.php.

References SettingsTabHandler\getTabForm().

WebsiteSettingsTabHandler::reloadLocalizedDefaultSettings (   $args,
  $request 
)

Reload the default localized settings for the press

Parameters
$argsarray
$requestobject

Definition at line 174 of file WebsiteSettingsTabHandler.inc.php.

References DAORegistry\getDAO(), DAO\getDataChangedEvent(), and PKPLocale\isLocaleValid().

WebsiteSettingsTabHandler::saveFile (   $args,
  $request 
)

Save an uploaded file.

Parameters
$argsarray
$requestPKPRequest
Returns
string

Definition at line 108 of file WebsiteSettingsTabHandler.inc.php.

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

WebsiteSettingsTabHandler::showFileUploadForm (   $args,
  $request 
)

Show the upload image form.

Parameters
$requestRequest
$argsarray
Returns
string JSON message

Definition at line 70 of file WebsiteSettingsTabHandler.inc.php.

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

WebsiteSettingsTabHandler::showTab (   $args,
  $request 
)
WebsiteSettingsTabHandler::uploadFile (   $args,
  $request 
)

Upload a new file.

Parameters
$argsarray
$requestPKPRequest
Returns
string

Definition at line 84 of file WebsiteSettingsTabHandler.inc.php.

References _getFileUploadForm().

WebsiteSettingsTabHandler::WebsiteSettingsTabHandler ( )

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