All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions
ActivityModelsDefaultController Class Reference
Inheritance diagram for ActivityModelsDefaultController:
ActivitiesModuleController ZurmoModuleController ZurmoBaseController Controller MeetingsDefaultController NotesDefaultController TasksDefaultController

Public Member Functions

 filters ()
 
 actionCreateFromRelation ($relationAttributeName, $relationModelId, $relationModuleId, $redirectUrl)
 
 actionDetails ($id, $redirectUrl=null)
 
 actionEdit ($id, $redirectUrl=null)
 
 actionCopy ($id, $redirectUrl=null)
 
 actionDelete ($id, $redirectUrl=null)
 
- Public Member Functions inherited from ZurmoModuleController
 filters ()
 
 actionIndex ()
 
 actionUpdateAttributeValue ($id, $attribute, $value)
 
 actionLoadSavedSearch ($id, $redirectAction= 'list')
 
 actionSelectFromRelatedList ($portletId, $uniqueLayoutId, $relationAttributeName, $relationModelId, $relationModuleId, $stateMetadataAdapterClassName=null)
 
 actionAutoComplete ($term, $autoCompleteOptions=null)
 
 actionCreateFromRelation ($relationAttributeName, $relationModelId, $relationModuleId, $redirectUrl)
 
 actionCopy ($id)
 
 actionAuditEventsModalList ($id)
 
 actionRenderStickyListBreadCrumbContent ($stickyOffset, $stickyKey, $stickyModelId)
 
 actionUnlink ($id)
 
 actionSearchForDuplicateModels ($attribute, $value)
 
 processListViewMerge ($modelClassName, $mergedModelFormClassName, $viewPrefix, $pageView, $redirectUrl)
 
 actionPushLayout ($id)
 
- Public Member Functions inherited from ZurmoBaseController
 filters ()
 
 resolveModuleClassNameForFilters ()
 
 __construct ($id, $module=null)
 
- Public Member Functions inherited from Controller
 __construct ($id, $module=null)
 
 resolveAndGetModuleId ()
 
 renderBeginWidget ($className, $properties=array())
 
 renderEndWidget ()
 
 makeRedBeanDataProviderByDataCollection ($searchModel, $pageSize, $stateMetadataAdapterClassName=null, $dataCollection=null)
 

Protected Member Functions

 getPageViewClassName ()
 
 actionCreateByModel (Activity $activity, $redirectUrl)
 
 processEdit (Activity $activity, $redirectUrl=null)
 
- Protected Member Functions inherited from ActivitiesModuleController
 resolveNewModelByRelationInformation ($model, $relationModelClassName, $relationModelId, $relationModuleId)
 
 addRelatedModelAccountToModel (RedBeanModel $model, RedBeanModel $relatedModel)
 
- Protected Member Functions inherited from ZurmoModuleController
 renderAutoCompleteResults ($modelClassName, $term, $autoCompleteOptions=null)
 
 resolveNewModelByRelationInformation ($model, $relationAttributeName, $relationModelId, $relationModuleId)
 
 addRelatedModelAccountToModel (RedBeanModel $model, RedBeanModel $relatedModel)
 
 resolveModelForAuditEventsModalList ($id)
 
 getModelName ()
 
 export ($stickySearchKey=null, $modelClassName=null, $exportFileName=null)
 
 resolveStateMetadataAdapterClassNameForExport ()
 
 beforeRedirect ($model)
 
- Protected Member Functions inherited from ZurmoBaseController
 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)
 
 makeSearchAndListView ($searchModel, $moduleName, $dataProvider)
 
- Protected Member Functions inherited from Controller
 resolveKanbanBoardMetadataBeforeMakingDataProvider ($searchForm, &$metadata)
 
 resolveFilteredByMetadataBeforeMakingDataProvider ($searchForm, &$metadata)
 
 resolveMetadataBeforeMakingDataProvider (&$metadata)
 
 makeDetailsAndRelationsView ($model, $moduleClassName, $viewClassName, $redirectUrl, $breadCrumbView=null)
 
 resolveAdditionalParametersForDetailsAndRelationsView ($viewClassName)
 
 makeTitleBarAndEditAndDetailsView ($model, $renderType, $titleBarAndEditViewClassName= 'TitleBarAndEditAndDetailsView')
 
 makeEditAndDetailsView ($model, $renderType)
 
 makeTitleBarAndEditView ($model, $titleBarAndEditViewClassName)
 
 makeTitleBarAndDetailsView ($model, $titleBarAndDetailsViewClassName= 'TitleBarAndDetailsView')
 
 resolveActiveAttributesFromMassEditPost ()
 
 resolveActiveAttributesFromMassDeletePost ()
 
 makeMassEditView ($model, $activeAttributes, $selectedRecordCount, $title)
 
 makeMassDeleteView ($model, $activeAttributes, $selectedRecordCount, $title, $massDeleteViewClassName= 'MassDeleteView', $useModuleClassNameForItemLabel=true)
 
 getMassEditProgressStartFromGet ($getVariableName, $pageSize)
 
 getMassDeleteProgressStartFromGet ($getVariableName, $pageSize)
 
 attemptToValidateAjaxFromPost ($model, $postVariableName)
 
 getModelsToSave ($modelClassName, $dataProvider, $selectedRecordCount, $page, $pageSize)
 
 getModelsToDelete ($modelClassName, $dataProvider, $selectedRecordCount, $page, $pageSize)
 
 makeListMergeView ($model, $viewPrefix, $selectedList=array())
 

Additional Inherited Members

- Static Public Member Functions inherited from ZurmoBaseController
static getRightsFilterPath ()
 
- Data Fields inherited from ZurmoModuleController
const ZERO_MODELS_CHECK_FILTER_PATH = 'application.modules.zurmo.controllers.filters.ZeroModelsCheckControllerFilter'
 
- Data Fields inherited from ZurmoBaseController
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'
 
const ROOT_USER_ACCESS_FILTER_PATH = 'application.modules.zurmo.controllers.filters.RootUserAccessControllerFilter'
 
- Static Protected Member Functions inherited from ActivitiesModuleController
static getZurmoControllerUtil ()
 
- Static Protected Member Functions inherited from ZurmoModuleController
static getSearchFormClassName ()
 
static getModelAndCatchNotFoundAndDisplayError ($modelClassName, $id)
 
- Static Protected Member Functions inherited from ZurmoBaseController
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)
 
- Static Protected Member Functions inherited from Controller
static resolveDynamicSearchMetadata ($searchModel, $metadata, SearchAttributesDataCollection $dataCollection)
 
static resolveActiveAttributesFromPostForMassAction ($actionId)
 
static getSelectedRecordCountByResolvingSelectAllFromGet ($dataProvider, $countEmptyStringAsElement=true)
 
static getMassActionProgressStartFromGet ($pageVariableName, $pageSize)
 
static getModelsToUpdate ($modelClassName, $dataProvider, $selectedRecordCount, $page, $pageSize)
 
static getMassEditAlertMessage ($postVariableName)
 
static resolveMassEditAlertMessage ($postVariableName)
 

Detailed Description

Activities Modules such as Meetings, Notes, and tasks should extend this class to provide generic actions that are uniform across these models.

Definition at line 41 of file ActivityModelsDefaultController.php.

Member Function Documentation

actionCreateFromRelation (   $relationAttributeName,
  $relationModelId,
  $relationModuleId,
  $redirectUrl 
)
Parameters
$relationAttributeName
$relationModelId
$relationModuleId
$redirectUrl

Definition at line 69 of file ActivityModelsDefaultController.php.

actionCreateByModel ( Activity  $activity,
  $redirectUrl 
)
protected
Parameters
Activity$activity
$redirectUrl

Definition at line 83 of file ActivityModelsDefaultController.php.

actionDetails (   $id,
  $redirectUrl = null 
)
Parameters
$id
null$redirectUrl

Definition at line 97 of file ActivityModelsDefaultController.php.

actionEdit (   $id,
  $redirectUrl = null 
)
Parameters
$id
null$redirectUrl

Definition at line 114 of file ActivityModelsDefaultController.php.

actionCopy (   $id,
  $redirectUrl = null 
)
Parameters
$id
null$redirectUrl

Definition at line 126 of file ActivityModelsDefaultController.php.

processEdit ( Activity  $activity,
  $redirectUrl = null 
)
protected
Parameters
Activity$activity
null$redirectUrl

Definition at line 144 of file ActivityModelsDefaultController.php.

actionDelete (   $id,
  $redirectUrl = null 
)
Parameters
$id
null$redirectUrl

Definition at line 158 of file ActivityModelsDefaultController.php.


The documentation for this class was generated from the following file:
Generated on Tue Jan 28 2020 07:10:23