CustomManagement Class Reference

Public Member Functions

 runBeforeInstallationAutoBuildDatabase (MessageLogger $messageLogger)
 runAfterInstallationDefaultDataLoad (MessageLogger $messageLogger)
 resolveIsCustomDataLoaded ()
 runImportsForImportCommand (ImportMessageLogger $messageLogger, $importName=null)
 resolveElementInformationDuringFormLayoutRender (DetailsView $view, &$elementInformation)
 resolveActionElementInformationDuringRender (MetadataView $view, &$elementInformation)
 setCalendarItemTitle (CalendarItem $calendarItem, RedBeanModel $model)
 resolveRowMenuColumnClassForOpenTaskPortlet ($relationAttributeName)
 registerTaskModalDetailsScript ($gridViewId)
 resolveDataProviderClassNameForControllerBySearchModel ($searchModel)
 registerOpenToTaskModalDetailsScript ($taskId, $sourceId)
 renderKanbanSearchView ($searchFormModel, $params)
 resolveKanbanCardColumns ($columns)
 renderExtraAttributesWithNameInKanbanCard ($cardColumns, Task $task, $row)
 resolveTaskModalButtonColumnClassNameForTasksMyListView ()
 renderHeadContentForPortletOnDetailsAndRelationsView ($viewClassName, $params, $defaultOptionsContent, $parentContent)
 resolveComponentRulesClassNameByModule ($moduleClassName, $rulesName)
 resolveThumbnailForFeaturedEmailTemplate (EmailTemplate $emailTemplate)
 resolveAdditionalScriptContentForEmailTemplate ($stepCount, &$script)
 resolveQueueModelEditAndDetailsViewOnLoadScript ($model)
 resolveQueueModelEditViewOnRuleTypeChangeScript ($model)
 resolveIsConfigurationMenuItemVisibleForCurrentUser ($menuItem)
 resolveExtraToolbarContentForView ($viewClassName, $controllerId, $moduleId, $modelId)
 resolveColumnAdapterClassNameForView ($viewClassName, $columnInformation)
 resolveLeadToAccountCustomAttributesWithNoPostData (Contact $contact, Account $account, array $postData)
 resolveLeadToOpportunityCustomAttributesWithNoPostData (Contact $contact, Opportunity $opportunity, array $postData)
 resolveOpportunityCustomActionsBeforeSave ($model)
 resolveCustomTranslatedAttributeLabelsByModelClassName ($modelClassName, $language)
 resolveAccountCustomActionsBeforeSave ($model)
 resolveOpportunityCustomActionsBeforeDelete ($model)
 resolveOpportunityCustomActionsAfterSave ($model)
 resolveOpportunityCustomActionsOnModified ($model)
 resolveOpportunityIsCacheable ()
 resolveOpportunitiesReportRulesCustomMetadata (&$metadata)
 resolveAccountsReportRulesCustomMetadata (&$metadata)

Detailed Description

Helper class for managing customizations to Zurmo. If you want to do customizations, extend this class and in perInstance.php define: $instanceConfig['custom']['class'] = 'path.to.your.custom.management.component.MyCustomMeasurement'; Then in your new component, you can override any of the methods that act as hooks.

Definition at line 43 of file CustomManagement.php.


Member Function Documentation

runBeforeInstallationAutoBuildDatabase ( MessageLogger messageLogger  ) 

Called right before the auto build is initialized in the installation process. Make sure you do not clear the cache in here if you are running any type of autobuilder such as building the globalmetadata table in order to populate it.

See also:
InstallUtil::runInstallation
Parameters:
MessageLogger $messageLogger

Definition at line 52 of file CustomManagement.php.

runAfterInstallationDefaultDataLoad ( MessageLogger messageLogger  ) 

Called right after the default data is loaded in the installation process.

See also:
InstallUtil::runInstallation
Parameters:
MessageLogger $messageLogger

Definition at line 61 of file CustomManagement.php.

resolveIsCustomDataLoaded (  ) 

Called as a begin request behavior. This is only called during non-installation behavior. This can be used as a convenience for developers to check and load any missing metadata customizations as they develop.

Definition at line 69 of file CustomManagement.php.

runImportsForImportCommand ( ImportMessageLogger messageLogger,
importName = null 
)

Called from ImportCommand. Override and add calls to any import routines you would like to run.

See also:
ImportCommand
Parameters:
MessageLogger $messageLogger
string $importName - Optional array of specific import process to run, otherwise if empty, run all available import processes.

Definition at line 80 of file CustomManagement.php.

setCalendarItemTitle ( CalendarItem calendarItem,
RedBeanModel model 
)

Called in CalendarUtil to set the title.

Parameters:
CalendarItem $calendarItem
RedBeanModel $model

Definition at line 99 of file CustomManagement.php.

resolveRowMenuColumnClassForOpenTaskPortlet ( relationAttributeName  ) 

Resolve row menu column class for open task portlet.

Parameters:
string $relationAttributeName
Returns:
string

Definition at line 109 of file CustomManagement.php.

registerTaskModalDetailsScript ( gridViewId  ) 

Register task modal detail script.

Parameters:
string $gridViewId

Definition at line 118 of file CustomManagement.php.

resolveDataProviderClassNameForControllerBySearchModel ( searchModel  ) 

Resolve data provider by search model.

Parameters:
TasksByOpportunitySearchForm $searchModel
Returns:
string

Definition at line 129 of file CustomManagement.php.

registerOpenToTaskModalDetailsScript ( taskId,
sourceId 
)

Register script for special task detail link. This is from a redirect of something like tasks/default/details and it should open up the task immediately.

Parameters:
int $taskId
string $sourceId

Definition at line 148 of file CustomManagement.php.

renderKanbanSearchView ( searchFormModel,
params 
)

Render kanban search view.

Parameters:
TasksSearchForm $searchFormModel
array $params
Returns:
string

Definition at line 159 of file CustomManagement.php.

resolveKanbanCardColumns ( columns  ) 

Resolve kanban columns.

Parameters:
array $columns
Returns:
array

Definition at line 171 of file CustomManagement.php.

renderExtraAttributesWithNameInKanbanCard ( cardColumns,
Task task,
row 
)

Renders extra attributes with name in kanban card.

Parameters:
array $cardColumns
Task $task
int $row

Definition at line 183 of file CustomManagement.php.

resolveTaskModalButtonColumnClassNameForTasksMyListView (  ) 

Resolve task modal button column class for tasks my list view.

Returns:
string

Definition at line 192 of file CustomManagement.php.

renderHeadContentForPortletOnDetailsAndRelationsView ( viewClassName,
params,
defaultOptionsContent,
parentContent 
)
Parameters:
$viewClassName string
$params array
$defaultOptionsContent string
$parentContent string
Returns:
string

Definition at line 204 of file CustomManagement.php.

resolveComponentRulesClassNameByModule ( moduleClassName,
rulesName 
)

Resolve rules class name

Definition at line 215 of file CustomManagement.php.

resolveThumbnailForFeaturedEmailTemplate ( EmailTemplate emailTemplate  ) 

While populating Saved Layouts, featured templates would have respective icon and background color.

Parameters:
EmailTemplate $emailTemplate
Returns:
null

Definition at line 225 of file CustomManagement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Nov 20 07:11:08 2019