All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Static Protected Member Functions
ProjectsDefaultController Class Reference
Inheritance diagram for ProjectsDefaultController:
ZurmoModuleController ZurmoBaseController Controller ProjectsDemoController

Public Member Functions

 filters ()
 
 actionList ()
 
 actionDetails ($id)
 
 actionCreate ()
 
 actionEdit ($id, $redirectUrl=null)
 
 actionDelete ($id)
 
 actionExport ()
 
 actionCopy ($id, $redirectUrl=null)
 
 actionMassEdit ()
 
 actionMassEditProgressSave ()
 
 actionMassDelete ()
 
 actionMassDeleteProgress ()
 
 actionModalList ()
 
 actionAutoCompleteAllAccountsForMultiSelectAutoComplete ($term)
 
 actionAutoCompleteAllOpportunitiesForMultiSelectAutoComplete ($term)
 
 actionCreateFromRelation ($relationAttributeName, $relationModelId, $relationModuleId, $redirectUrl)
 
 actionDashboardDetails ()
 
 actionShowProjectsLatestActivityFeed ()
 
- 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)
 

Static Public Member Functions

static getDashboardBreadcrumbLinks ()
 
static getListBreadcrumbLinks ()
 
static getProjectRelationsByPartialName ($className, $partialName, $pageSize, $stateMetadataAdapterClassName=null)
 
static renderHtmlContentLabelFromRelationAndKeyword ($relatedModel, $keyword)
 
- Static Public Member Functions inherited from ZurmoBaseController
static getRightsFilterPath ()
 

Data Fields

const PROJECTS_MOBILE_CHECK_FILTER_PATH = 'application.modules.projects.controllers.filters.ProjectsMobileCheckControllerFilter'
 
- 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'
 

Protected Member Functions

 resolveFilteredByMetadataBeforeMakingDataProvider ($searchForm, &$metadata)
 
 processEdit (Project $project, $redirectUrl=null)
 
 processAutoCompleteOptionsForRelations ($relatedModelClassName, $term)
 
 actionCreateByModel (Project $project, $redirectUrl=null)
 
- 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())
 

Static Protected Member Functions

static getSearchFormClassName ()
 
static getWherePartForPartialNameSearchByPartialName ($tableName, $partialName)
 
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

Definition at line 37 of file DefaultController.php.

Member Function Documentation

static getDashboardBreadcrumbLinks ( )
static

Gets dashboard breadcrumb links

Returns
string

Definition at line 45 of file DefaultController.php.

static getListBreadcrumbLinks ( )
static

Gets listview breadcrumb links

Returns
string

Definition at line 55 of file DefaultController.php.

filters ( )
Returns
array

Definition at line 65 of file DefaultController.php.

actionList ( )

List view for projects

Definition at line 95 of file DefaultController.php.

actionDetails (   $id)

Details view for project

Parameters
int$id

Definition at line 137 of file DefaultController.php.

resolveFilteredByMetadataBeforeMakingDataProvider (   $searchForm,
$metadata 
)
protected

This method is called prior to creation of data provider in order to add search metadata for related model. Used in actionDetails for Kanban view.

Definition at line 177 of file DefaultController.php.

actionCreate ( )

Create Project

Definition at line 188 of file DefaultController.php.

actionEdit (   $id,
  $redirectUrl = null 
)

Edit Project

Definition at line 204 of file DefaultController.php.

actionDelete (   $id)

Delete project

Parameters
int$id

Definition at line 221 of file DefaultController.php.

static getSearchFormClassName ( )
staticprotected

Gets search form class name

Returns
string

Definition at line 233 of file DefaultController.php.

actionExport ( )

Exports project data

Definition at line 241 of file DefaultController.php.

actionCopy (   $id,
  $redirectUrl = null 
)

Copies the project

Parameters
int$id

Definition at line 250 of file DefaultController.php.

processEdit ( Project  $project,
  $redirectUrl = null 
)
protected

Process the editing of project

Parameters
Project$project
string$redirectUrl

Definition at line 278 of file DefaultController.php.

actionMassEdit ( )

Action for displaying a mass edit form and also action when that form is first submitted. When the form is submitted, in the event that the quantity of models to update is greater than the pageSize, then once the pageSize quantity has been reached, the user will be redirected to the makeMassEditProgressView. In the mass edit progress view, a javascript refresh will take place that will call a refresh action, usually massEditProgressSave. If there is no need for a progress view, then a flash message will be added and the user will be redirected to the list view for the model. A flash message will appear providing information on the updated records.

See Also
Controler->makeMassEditProgressView
Controller->processMassEdit

Definition at line 301 of file DefaultController.php.

actionMassEditProgressSave ( )

Action called in the event that the mass edit quantity is larger than the pageSize. This action is called after the pageSize quantity has been updated and continues to be called until the mass edit action is complete. For example, if there are 20 records to update and the pageSize is 5, then this action will be called 3 times. The first 5 are updated when the actionMassEdit is called upon the initial form submission.

Definition at line 341 of file DefaultController.php.

actionMassDelete ( )

Action for displaying a mass delete form and also action when that form is first submitted. When the form is submitted, in the event that the quantity of models to delete is greater than the pageSize, then once the pageSize quantity has been reached, the user will be redirected to the makeMassDeleteProgressView. In the mass delete progress view, a javascript refresh will take place that will call a refresh action, usually makeMassDeleteProgressView. If there is no need for a progress view, then a flash message will be added and the user will be redirected to the list view for the model. A flash message will appear providing information on the delete records.

See Also
Controller->makeMassDeleteProgressView
Controller->processMassDelete

Definition at line 375 of file DefaultController.php.

actionMassDeleteProgress ( )

Action called in the event that the mass delete quantity is larger than the pageSize. This action is called after the pageSize quantity has been delted and continues to be called until the mass delete action is complete. For example, if there are 20 records to delete and the pageSize is 5, then this action will be called 3 times. The first 5 are updated when the actionMassDelete is called upon the initial form submission.

Definition at line 416 of file DefaultController.php.

actionModalList ( )

Project Modal List Field

Definition at line 439 of file DefaultController.php.

actionAutoCompleteAllAccountsForMultiSelectAutoComplete (   $term)

Render autocomplete options of accounts for projects

Parameters
string$term

Definition at line 454 of file DefaultController.php.

actionAutoCompleteAllOpportunitiesForMultiSelectAutoComplete (   $term)

Render autocomplete options of opportunities for projects

Parameters
string$term

Definition at line 463 of file DefaultController.php.

processAutoCompleteOptionsForRelations (   $relatedModelClassName,
  $term 
)
protected

Process auto complete options for relations

Parameters
string$relatedModelClassName
string$term

Definition at line 473 of file DefaultController.php.

static getProjectRelationsByPartialName (   $className,
  $partialName,
  $pageSize,
  $stateMetadataAdapterClassName = null 
)
static
Parameters
string$partialName
int$pageSize
null | string$stateMetadataAdapterClassName

Definition at line 495 of file DefaultController.php.

static getWherePartForPartialNameSearchByPartialName (   $tableName,
  $partialName 
)
staticprotected
Parameters
string$partialName
Returns
string

Definition at line 521 of file DefaultController.php.

static renderHtmlContentLabelFromRelationAndKeyword (   $relatedModel,
  $keyword 
)
static
Parameters
RelatedModelAccount, Contact or Opportunity
string$keyword
Returns
string

Definition at line 532 of file DefaultController.php.

static getZurmoControllerUtil ( )
staticprotected
Returns
ProjectZurmoControllerUtil

Definition at line 550 of file DefaultController.php.

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

Create a project from a relation for example, on accounts details and relations view

Parameters
string$relationAttributeName
string$relationModelId
string$relationModuleId
string$redirectUrl

Definition at line 562 of file DefaultController.php.

actionCreateByModel ( Project  $project,
  $redirectUrl = null 
)
protected

Creates by modal

Parameters
Project$project
string$redirectUrl

Definition at line 576 of file DefaultController.php.

actionDashboardDetails ( )

Display projects dashboard

Definition at line 588 of file DefaultController.php.

actionShowProjectsLatestActivityFeed ( )

Display list view of feeds for projects on dashboard

Definition at line 629 of file DefaultController.php.


The documentation for this class was generated from the following file:
Generated on Tue Jun 2 2020 07:10:57