modules/Campaigns/controller.php
\CampaignsController
Main SugarCRM controller
- Parent(s)
- \SugarController
Properties
$action_case_file= 'array(
'editview'=>'EditView',
'detailview'=>'DetailView',
'listview'=>'ListView'
)'
Map case sensitive filenames to action. This is used for linux/unix systems where filenames are case sensitive
Inherited from: \SugarController::$$action_case_file
$hasAccess= 'true'
This can be set from the application to tell us whether we have authorization to process the action. If this is set we will default to the noaccess view.
Inherited from: \SugarController::$$hasAccess
$process_tasks= 'array(
'blockFileAccess',
'handleEntryPoint',
'remapWirelessAction',
'callLegacyCode',
'remapAction',
'handle_action',
'handleActionMaps',
)'
List of options to run through within the process() method.
Inherited from: \SugarController::$$process_tasks
$view= ''classic''
any subcontroller can modify this to change the view
Inherited from: \SugarController::$$view
$view_object_map= 'array()'
this array will hold the mappings between a key and an object for use within the view.
Inherited from: \SugarController::$$view_object_mapMethods
SugarController(
)
:
void
Constructor. This ie meant tot load up the module, action, record as well as the mapping arrays.
Inherited from: \SugarController::SugarController()checkEntryPointRequiresAuth(
\$entrypoint $entryPoint
)
:
bool
Checks to see if the requested entry point requires auth
Inherited from: \SugarController::checkEntryPointRequiresAuth()execute(
)
:
void
This method is called from SugarApplication->execute and it will bootstrap the entire controller process
Inherited from: \SugarController::execute()loadBean(
)
:
void
Given a record id load the bean. This bean is accessible from any sub controllers.
Inherited from: \SugarController::loadBean()preProcess(
)
:
void
Meant to be overridden by a subclass and allows for specific functionality to be injected prior to the process() method being called.
Inherited from: \SugarController::preProcess()pre_save(
)
:
void
Do some processing before saving the bean to the database.
Inherited from: \SugarController::pre_save()process(
)
:
void
if we have a function to support the action use it otherwise use the default action
Inherited from: \SugarController::process()setup(
$module
=
''
)
:
void
Called from SugarApplication and is meant to perform the setup operations on the controller.
Inherited from: \SugarController::setup()