modules/Contacts/controller.php

Show: inherited
Table of Contents

\ContactsController

Package:

Main SugarCRM controller

Parent(s)
\SugarController

Properties

Propertyprotectedbool  $_processed= 'false'
inherited

Whether or not the action has been handled by $process_tasks

Inherited from: \SugarController::$$_processed
Default valuefalseDetails
Type
bool
Inherited_from
\SugarController::$$_processed  
Propertypublic  $action= ''index''
inherited

The name of the current action.

Inherited from: \SugarController::$$action
Default value'index'Details
Type
n/a
Inherited_from
\SugarController::$$action  
Propertypublic  $action_case_file= 'array( 'editview'=>'EditView', 'detailview'=>'DetailView', 'listview'=>'ListView' )'
staticinherited

Map case sensitive filenames to action. This is used for linux/unix systems where filenames are case sensitive

Inherited from: \SugarController::$$action_case_file
Default valuearray( 'editview'=>'EditView', 'detailview'=>'DetailView', 'listview'=>'ListView' )Details
Type
n/a
Inherited_from
\SugarController::$$action_case_file  
Propertyprotected  $action_file_map= 'array()'
inherited

Map an action directly to a file. This will be loaded from action_file_map.php

Inherited from: \SugarController::$$action_file_map
Default valuearray()Details
Type
n/a
Inherited_from
\SugarController::$$action_file_map  
Propertyprotected  $action_remap= 'array('index'=>'listview')'
inherited

remap actions in here e.g. make all detail views go to edit views $action_remap = array('detailview'=>'editview');

Inherited from: \SugarController::$$action_remap
Default valuearray('index'=>'listview')Details
Type
n/a
Inherited_from
\SugarController::$$action_remap  
Propertyprotected  $action_view_map= 'array()'
inherited

Map an action directly to a view. This will be loaded from action_view_map.php

Inherited from: \SugarController::$$action_view_map
Default valuearray()Details
Type
n/a
Inherited_from
\SugarController::$$action_view_map  
Propertypublic  $bean= 'null'
inherited

If a bean is present that set it.

Inherited from: \SugarController::$$bean
Default valuenullDetails
Type
n/a
Inherited_from
\SugarController::$$bean  
Propertyprotected  $do_action= ''index''
inherited

If the action was remapped it will be set to do_action and then we will just use do_action for the actual action to perform.

Inherited from: \SugarController::$$do_action
Default value'index'Details
Type
n/a
Inherited_from
\SugarController::$$do_action  
Propertypublic  $hasAccess= 'true'
inherited

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
Default valuetrueDetails
Type
n/a
Inherited_from
\SugarController::$$hasAccess  
Propertypublic  $module= ''Home''
inherited

The name of the current module.

Inherited from: \SugarController::$$module
Default value'Home'Details
Type
n/a
Inherited_from
\SugarController::$$module  
Propertypublic  $process_tasks= 'array( 'blockFileAccess', 'handleEntryPoint', 'callLegacyCode', 'remapAction', 'handle_action', 'handleActionMaps', )'
inherited

List of options to run through within the process() method.

Inherited from: \SugarController::$$process_tasks

This list is meant to easily allow additions for new functionality as well as the ability to add a controller's own handling.

Default valuearray( 'blockFileAccess', 'handleEntryPoint', 'callLegacyCode', 'remapAction', 'handle_action', 'handleActionMaps', )Details
Type
n/a
Inherited_from
\SugarController::$$process_tasks  
Propertypublic  $record= ''''
inherited

The id of the current record.

Inherited from: \SugarController::$$record
Default value''Details
Type
n/a
Inherited_from
\SugarController::$$record  
Propertypublic  $redirect_url= ''''
inherited

url to redirect to

Inherited from: \SugarController::$$redirect_url
Default value''Details
Type
n/a
Inherited_from
\SugarController::$$redirect_url  
Propertypublic  $return_action= 'null'
inherited

The name of the return action.

Inherited from: \SugarController::$$return_action
Default valuenullDetails
Type
n/a
Inherited_from
\SugarController::$$return_action  
Propertypublic  $return_id= 'null'
inherited

The id of the return record.

Inherited from: \SugarController::$$return_id
Default valuenullDetails
Type
n/a
Inherited_from
\SugarController::$$return_id  
Propertypublic  $return_module= 'null'
inherited

The name of the return module.

Inherited from: \SugarController::$$return_module
Default valuenullDetails
Type
n/a
Inherited_from
\SugarController::$$return_module  
Propertypublic  $target_module= 'null'
inherited

The name of the target module.

Inherited from: \SugarController::$$target_module
Default valuenullDetails
Type
n/a
Inherited_from
\SugarController::$$target_module  
Propertyprotected  $tasks= 'array( 'pre_action', 'do_action', 'post_action' )'
inherited

This array holds the methods that handleAction() will invoke, in sequence.

Inherited from: \SugarController::$$tasks
Default valuearray( 'pre_action', 'do_action', 'post_action' )Details
Type
n/a
Inherited_from
\SugarController::$$tasks  
Propertypublic  $view= ''classic''
inherited

any subcontroller can modify this to change the view

Inherited from: \SugarController::$$view
Default value'classic'Details
Type
n/a
Inherited_from
\SugarController::$$view  
Propertypublic  $view_object_map= 'array()'
inherited

this array will hold the mappings between a key and an object for use within the view.

Inherited from: \SugarController::$$view_object_map
Default valuearray()Details
Type
n/a
Inherited_from
\SugarController::$$view_object_map  

Methods

methodpublicSugarController( ) : void
inherited

Constructor. This ie meant tot load up the module, action, record as well as the mapping arrays.

Inherited from: \SugarController::SugarController()
methodpublicaction_CloseContactAddressPopup( ) : void

methodpublicaction_ContactAddressPopup( ) : void

methodpublicaction_Popup( ) : void

methodpublicaction_RetrieveEmail( ) : void

methodpublicaction_ValidPortalUsername( ) : void

methodprotectedaction_callmethoddashlet( ) : void
inherited

this method id used within a Dashlet when performing an ajax call

Inherited from: \SugarController::action_callmethoddashlet()
methodprotectedaction_configuredashlet( ) : void
inherited

this method is used within a Dashlet when the options configuration is posted

Inherited from: \SugarController::action_configuredashlet()
methodprotectedaction_default( ) : void
inherited

Action to handle when using a file as was done in previous versions of Sugar.

Inherited from: \SugarController::action_default()
methodprotectedaction_delete( ) : void
inherited

Perform the actual deletion.

Inherited from: \SugarController::action_delete()
methodprotectedaction_deleteattachment( ) : void
inherited

Global method to delete an attachment

Inherited from: \SugarController::action_deleteattachment()

If the bean does not have a deleteAttachment method it will return 'false' as a string

methodprotectedaction_listview( ) : void
inherited

Perform the listview action

Inherited from: \SugarController::action_listview()
methodprotectedaction_massupdate( ) : void
inherited

Perform the actual massupdate.

Inherited from: \SugarController::action_massupdate()
methodpublicaction_save( ) : void
inherited

Perform the actual save

Inherited from: \SugarController::action_save()
methodpublicaction_spot( ) : void
inherited

Inherited from: \SugarController::action_spot()
methodprivateblockFileAccess( ) : true
inherited

Given the module and action, determine whether the super/admin has prevented access to this url. In addition if any links specified for this module, load the links into GLOBALS

Inherited from: \SugarController::blockFileAccess()
Returns
Type Description
true if we want to stop processing, false if processing should continue
methodprotectedcallLegacyCode( ) : void
inherited

Meant to handle old views e.g. DetailView.php.

Inherited from: \SugarController::callLegacyCode()
methodpubliccheckEntryPointRequiresAuth( \$entrypoint $entryPoint ) : bool
inherited

Checks to see if the requested entry point requires auth

Inherited from: \SugarController::checkEntryPointRequiresAuth()
Parameters
Name Type Description
$entryPoint \$entrypoint

string name of the entrypoint

Returns
Type Description
bool true if auth is required, false if not
methodprivatedo_action( ) : void
inherited

Perform the specified action.

Inherited from: \SugarController::do_action()

This can be overridde in a sub-class

methodpublicexecute( ) : void
finalinherited

This method is called from SugarApplication->execute and it will bootstrap the entire controller process

Inherited from: \SugarController::execute()
methodpublicgetActionFilename(  $action ) : void
staticinherited

getActionFilename

Inherited from: \SugarController::getActionFilename()
Parameters
Name Type Description
$action
methodprivatehandleActionMaps( ) : void
inherited

If the action has been remapped to a different action as defined in action_file_map.php or action_view_map.php load those maps here.

Inherited from: \SugarController::handleActionMaps()
methodprivatehandleEntryPoint( ) : void
inherited

This code is part of the entry points reworking. We have consolidated all entry points to go through index.php. Now in order to bring up an entry point it will follow the format: 'index.php?entryPoint=download' the download entry point is mapped in the following file: entry_point_registry.php

Inherited from: \SugarController::handleEntryPoint()
methodprotectedhandleException( \Exception $e ) : void
inherited

Handle exception

Inherited from: \SugarController::handleException()
Parameters
Name Type Description
$e \Exception
methodprotectedhandle_action( ) : true
inherited

This method is called from the process method. I could also be called within an action_* method.

Inherited from: \SugarController::handle_action()

It allows a developer to override any one of these methods contained within, or if the developer so chooses they can override the entire action_* method.

Returns
Type Description
true if any one of the pre_, do_, or post_ methods have been defined, false otherwise. This is important b/c if none of these methods exists, then we will run the action_default() method.
methodprotectedhasFunction( \function $function ) : true
inherited

Determine if a given function exists on the objects

Inherited from: \SugarController::hasFunction()
Parameters
Name Type Description
$function \function
  • the function to check
Returns
Type Description
true if the method exists on the object, false otherwise
methodpublicloadBean( ) : void
inherited

Given a record id load the bean. This bean is accessible from any sub controllers.

Inherited from: \SugarController::loadBean()
methodprivateloadMapping(  $var,  $merge = false ) : void
inherited

Generic load method to load mapping arrays.

Inherited from: \SugarController::loadMapping()
Parameters
Name Type Description
$var
$merge
methodprivateloadMappings( ) : void
inherited

Load map files for use within the Controller

Inherited from: \SugarController::loadMappings()
methodprivateloadPropertiesFromRequest( ) : void
inherited

Set properties on the Controller from the $_REQUEST

Inherited from: \SugarController::loadPropertiesFromRequest()
methodprotectedno_access( ) : void
inherited

The default action handler for instances where we do not have access to process.

Inherited from: \SugarController::no_access()
methodprotectedno_action( ) : void
inherited

If there is no action found then display an error to the user.

Inherited from: \SugarController::no_action()
methodprivatepost_action( ) : void
inherited

Perform an action after to the specified action has occurred.

Inherited from: \SugarController::post_action()

This can be overridde in a sub-class

methodprotectedpost_delete( ) : void
inherited

Specify what happens after the deletion has occurred.

Inherited from: \SugarController::post_delete()
methodprotectedpost_massupdate( ) : void
inherited

Specify what happens after the massupdate has occurred.

Inherited from: \SugarController::post_massupdate()
methodprotectedpost_save( ) : void
inherited

Specify what happens after the save has occurred.

Inherited from: \SugarController::post_save()
methodpublicpreProcess( ) : void
inherited

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()
methodprivatepre_action( ) : void
inherited

Perform an action prior to the specified action.

Inherited from: \SugarController::pre_action()

This can be overridde in a sub-class

methodpublicpre_save( ) : void
inherited

Do some processing before saving the bean to the database.

Inherited from: \SugarController::pre_save()
methodpublicprocess( ) : void
inherited

if we have a function to support the action use it otherwise use the default action

Inherited from: \SugarController::process()

1) check for file 2) check for action

methodprivateprocessView( ) : void
inherited

Display the appropriate view.

Inherited from: \SugarController::processView()
methodprotectedredirect( ) : void
inherited

Perform redirection based on the redirect_url

Inherited from: \SugarController::redirect()
methodprotectedremapAction( ) : void
inherited

Actually remap the action if required.

Inherited from: \SugarController::remapAction()
methodpublicsetModule( object $module ) : void
inherited

Set the module on the Controller

Inherited from: \SugarController::setModule()
Parameters
Name Type Description
$module object
methodprotectedset_redirect( string $url ) : void
inherited

Set the url to which we will want to redirect

Inherited from: \SugarController::set_redirect()
Parameters
Name Type Description
$url string

url - the url to which we will want to redirect

methodpublicsetup(  $module = '' ) : void
inherited

Called from SugarApplication and is meant to perform the setup operations on the controller.

Inherited from: \SugarController::setup()
Parameters
Name Type Description
$module
Documentation was generated by DocBlox 0.18.1.