ZurmoBaseController Class Reference

Inheritance diagram for ZurmoBaseController:
Controller CommentsDefaultController ConfigurationDefaultController ContactWebFormsDefaultContactWebFormEntryController DesignerDefaultController EmailMessagesDefaultController HomeDefaultController ImportDefaultController MarketingDefaultController NotificationsDefaultController ReportsDefaultController SocialItemsDefaultController WorkflowsDefaultController WorkflowsDefaultMessageQueueController WorkflowsDefaultTimeQueueController ZurmoDefaultController ZurmoModuleApiController ZurmoModuleController

Public Member Functions

 filters ()
 resolveModuleClassNameForFilters ()
 __construct ($id, $module=null)
 resolveAndGetModuleId ()

Static Public Member Functions

static getRightsFilterPath ()

Data Fields

const RIGHTS_FILTER_PATH = 'application.modules.zurmo.controllers.filters.RightsControllerFilter'
const REQUIRED_ATTRIBUTES_FILTER_PATH = 'application.modules.zurmo.controllers.filters.RequiredAttributesControllerFilter'
const ADMIN_VIEW_MOBILE_CHECK_FILTER_PATH = 'application.modules.zurmo.controllers.filters.AdminViewMobileCheckControllerFilter'

Protected Member Functions

 makeActionBarSearchAndListView ($searchModel, $dataProvider, $actionBarViewClassName= 'SecuredActionBarForSearchAndListView', $viewPrefixName=null, $activeActionElementType=null, IntroView $introView=null)
 makeActionBarAndListView ($listModel, $dataProvider, $actionBarViewClassName= 'ActionBarForSearchAndListView', $viewPrefixName=null, $activeActionElementType=null)
 makeListView (SearchForm $searchForm, $dataProvider, $listViewClassName=null)
 resolveSearchDataProvider ($searchModel, $pageSize, $stateMetadataAdapterClassName=null, $stickySearchKey=null, $setSticky=true)
 resolveToTriggerOnSearchEvents ($listModelClassName)
 getDataProviderByResolvingSelectAllFromGet ($searchModel, $pageSize, $userId, $stateMetadataAdapterClassName=null, $stickySearchKey=null)
 processMassEdit ($pageSize, $activeAttributes, $selectedRecordCount, $pageViewClassName, $listModel, $title, $dataProvider=null)
 processMassEditProgressSave ($modelClassName, $pageSize, $title, $dataProvider=null)
 makeMassEditProgressView ($model, $page, $selectedRecordCount, $start, $pageSize, $title, $skipCount)
 saveMassEdit ($modelClassName, $postVariableName, $selectedRecordCount, $dataProvider, $page, $pageSize)
 processMassDelete ($pageSize, $activeAttributes, $selectedRecordCount, $pageViewClassName, $listModel, $title, $dataProvider=null, $redirectUrl=null)
 processMassDeleteProgress ($modelClassName, $pageSize, $title, $dataProvider=null)
 makeMassDeleteProgressView ($model, $page, $selectedRecordCount, $start, $pageSize, $title, $skipCount)
 doMassDelete ($modelClassName, $postVariableName, $selectedRecordCount, $dataProvider, $page, $pageSize)
 resolveReturnUrlForMassAction ()
 attemptToSaveModelFromPost ($model, $redirectUrlParams=null, $redirect=true, $returnOnValidate=false)
 actionAfterSuccessfulModelSave ($model, $modelToStringValue, $redirectUrlParams=null)
 redirectAfterSaveModel ($modelId, $urlParams=null)
 triggerMassAction ($modelClassName, $searchForm, $pageView, $title, $searchView=null, $stateMetadataAdapterClassName=null, $useModuleClassNameForItemLabel=true)
 massActionProgress ($model, $pageSize, $title, $actionId, $dataProvider)
 massAction ($model, $pageSize, $title, $pageView, $actionId, $dataProvider, $useModuleClassNameForItemLabel=true)
 processMassAction ($pageSize, $selectedRecordCount, $pageViewClassName, $listModel, $title, $actionId, $dataProvider=null)
 makeMassActionView ($model, $activeAttributes, $selectedRecordCount, $title, $actionId, $useModuleClassNameForItemLabel=true)
 processMassActionProgress ($listModel, $pageSize, $title, $actionId, $dataProvider=null)
 makeMassActionProgressView ($model, $page, $selectedRecordCount, $start, $pageSize, $title, $skipCount, $actionId)
 resolveParamsForMassProgressView ()
 resolveActiveElementTypeForKanbanBoard (SearchForm $searchForm)
 resolveActiveElementTypeForKanbanBoardInDetailView ($detailsAndRelationsView)
 resolveKanbanBoardIsActiveByGetForDetailsView ($detailsAndRelationsView)
 beforeRedirect ($model)

Static Protected Member Functions

static resolvePageValueForMassAction ($modelClassName)
static resolveViewIdByMassActionId ($actionId, $returnProgressViewName, $moduleName=null)
static applyGenericViewIdGenerationRules ($actionId)
static resolveTitleByMassActionId ($actionId)
static getZurmoControllerUtil ()
static getModelAndCatchNotFoundAndDisplayError ($modelClassName, $id)
static processModelsForMassAction ($model, $modelClassName, $selectedRecordCount, $dataProvider, $page, $pageSize, $insufficientPermissionSkipSavingUtil, $postModelClassName, $actionId)
static processModelsForMassActionWithoutScoring ($modelClassName, $selectedRecordCount, $dataProvider, $page, $pageSize, $insufficientPermissionSkipSavingUtil, $actionId)
static processModelsForMassEditAction ($postModelClassName, $model, $modelClassName, $selectedRecordCount, $dataProvider, $page, $pageSize, $insufficientPermissionSkipSavingUtil, $actionId)
static resolvePostDataByMassActionId ($actionId, $modelClassName=null)
static resolveSelectedRecordCountByMassActionId ($actionId, $dataProvider=null, $postData=array())
static resolveMassActionAlertMessage ($postVariableName, $actionId)
static resolvePageSizeByMassActionId ($actionId)
static toggleMuteScoringModelValueByMassActionId ($actionId, $mute=true)
static resolvePermissionOnSecurableItemByMassActionId ($actionId)
static processModelForMassDelete (&$model)
static resolveOffsetForDataProvider ($dataProvider, $actionId)
static processModelForMassEdit (&$model)
static resolveInsufficientPermissionSkipSavingUtilByMassActionId ($actionId)
static resolveProgressActionId ($actionId)
static resolveMassActionId ($actionId, $capitalizeFirst=true)

Detailed Description

Definition at line 37 of file ZurmoBaseController.php.


Member Function Documentation

resolveAndGetModuleId (  ) 

Override if the module is a nested module such as groups or roles.

Reimplemented in ZurmoGroupController, and ZurmoRoleController.

Definition at line 93 of file ZurmoBaseController.php.

processMassEdit ( pageSize,
activeAttributes,
selectedRecordCount,
pageViewClassName,
listModel,
title,
dataProvider = null 
) [protected]

This method is called after a mass edit form is first submitted. It is called from the actionMassEdit.

See also:
actionMassEdit in the module default controllers.

Definition at line 322 of file ZurmoBaseController.php.

processMassEditProgressSave ( modelClassName,
pageSize,
title,
dataProvider = null 
) [protected]

Called only during a mulitple phase save from mass edit. This occurs if the quantity of models to save is greater than the pageSize. This signals a save that must be conducted in phases where each phase updates a quantity of models no greater than the page size.

Definition at line 414 of file ZurmoBaseController.php.

saveMassEdit ( modelClassName,
postVariableName,
selectedRecordCount,
dataProvider,
page,
pageSize 
) [protected]

Called either from a mass edit save, or a mass edit progress save.

Definition at line 478 of file ZurmoBaseController.php.

processMassDelete ( pageSize,
activeAttributes,
selectedRecordCount,
pageViewClassName,
listModel,
title,
dataProvider = null,
redirectUrl = null 
) [protected]

This method is called after a mass delete form is first submitted. It is called from the actionMassDelete.

See also:
actionMassDelete in the module default controllers.

Definition at line 512 of file ZurmoBaseController.php.

attemptToSaveModelFromPost ( model,
redirectUrlParams = null,
redirect = true,
returnOnValidate = false 
) [protected]

Check if form is posted. If form is posted attempt to save. If save is complete, confirm the current user can still read the model. If not, then redirect the user to the index action for the module.

Reimplemented in UsersDefaultController, ZurmoCurrencyController, and ZurmoGroupController.

Definition at line 729 of file ZurmoBaseController.php.

static getModelAndCatchNotFoundAndDisplayError ( modelClassName,
id 
) [static, protected]
Parameters:
string $modelClassName
int $id
Returns:
mixed

Reimplemented in ZurmoModuleController.

Definition at line 790 of file ZurmoBaseController.php.

resolveActiveElementTypeForKanbanBoardInDetailView ( detailsAndRelationsView  )  [protected]

Resolve active element type

Parameters:
type $detailsAndRelationsView
Returns:
type

Definition at line 1255 of file ZurmoBaseController.php.

resolveKanbanBoardIsActiveByGetForDetailsView ( detailsAndRelationsView  )  [protected]
Parameters:
$detailsAndRelationsView 

Definition at line 1272 of file ZurmoBaseController.php.

beforeRedirect ( model  )  [protected]

Process info before redirection

Reimplemented in ZurmoModuleController.

Definition at line 1294 of file ZurmoBaseController.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Oct 23 07:10:31 2017