Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • ContactsController
  • Overview
  • Package
  • Class
  • Tree

Class ContactsController

CComponent
Extended by CBaseController
Extended by CController
Extended by X2Controller
Extended by x2base
Extended by ContactsController
Package: application\modules\contacts\controllers
Located at x2engine/protected/modules/contacts/controllers/ContactsController.php
Methods summary
public array
# actions( )

Return a list of external actions which need to be included.

Return a list of external actions which need to be included.

Returns

array
A merge of the parent class's imported actions in addition to the ones that are specific to the Contacts controller

Overrides

x2base::actions()
public array
# behaviors( )

Return a list of external behaviors which are necessary.

Return a list of external behaviors which are necessary.

Returns

array
A merge of the parent class's behaviors with the ContactsController specific ones

Overrides

x2base::behaviors()
public
# actionView( integer $id )

Displays a particular model.

Displays a particular model.

Parameters

$id
integer
$id the ID of the model to be displayed
public
# actionRevisions( integer $id, integer $timestamp )

This is a prototype function designed to re-build a record from the changelog.

This is a prototype function designed to re-build a record from the changelog.

This method is largely a work in progress though it is functional right now as is, it could just use some refactoring and improvements. On the "View Changelog" page in the Admin tab there's a link on each Contact changelog entry to view the record at that point in the history. Clicking that link brings you here.

Parameters

$id
integer
$id The ID of the Contact to be viewed
$timestamp
integer
$timestamp The timestamp to view the Contact at... this should probably be refactored to changelog ID
public
# actionGetTerms( )

Used for accounts auto-complete method. May be obsolete.

Used for accounts auto-complete method. May be obsolete.

public
# actionGetContacts( )

Used for auto-complete methods. This method is likely obsolete.

Used for auto-complete methods. This method is likely obsolete.

public
# actionGetItems( )

Used for auto-complete methods

Used for auto-complete methods

public
# actionGetLists( )

Return a JSON encoded list of Contact lists

Return a JSON encoded list of Contact lists

public
# actionSyncAccount( integer $id )

Synchronize a Contact record with its related Account. This function will load the linked Account record from the company field and overwrite any shared fields with the Account's version of that field.

Synchronize a Contact record with its related Account. This function will load the linked Account record from the company field and overwrite any shared fields with the Account's version of that field.

Parameters

$id
integer
$id The ID of the Contact
public
# actionShareContact( integer $id )

Generates an email template to share Contact data

Generates an email template to share Contact data

Parameters

$id
integer
$id The ID of the Contact
public
# actionIgnoreDuplicates( )

Called by the duplicate checker to keep the current record

Called by the duplicate checker to keep the current record

public
# actionDiscardNew( )

Called by the duplicate checker when discarding the new record.

Called by the duplicate checker when discarding the new record.

public
# actionCreate( )

Creates a new Contact record

Creates a new Contact record

public
# actionQuickContact( )

Method of creating a Contact called by the Quick Create widget

Method of creating a Contact called by the Quick Create widget

public
# actionUpdate( mixed $id )
public
# actionLists( )
public
# actionMyContacts( )
public
# actionNewContacts( )
public
# actionIndex( )
public
# actionList( mixed $id = null )
public
# actionCreateList( mixed $ajax = false )
public
# actionUpdateList( mixed $id )
public
# actionRemoveFromList( )
public
# actionDeleteList( )
public
# actionDelete( mixed $id )
public
# actionSubscribe( )
public
# actionQtip( mixed $id )
public
# actionCleanFailedLeads( )
public
# insertMenu( array $selectOptions = array(), X2Model $model = null, array $menuParams = null )

Create a menu for Contacts

Create a menu for Contacts

Parameters

$selectOptions
array
Menu options to remove
$model
X2Model
Model object passed to the view
$menuParams
array
Additional menu parameters
Methods inherited from x2base
actionDeleteNote(), actionGetX2ModelInput(), actionQuickView(), actionSearch(), admin(), ajaxResponse(), appLockout(), beforeAction(), checkPermissions(), cleanUpTags(), convertUrls(), create(), decodeQuotes(), denied(), encodeQuotes(), filterSetPortlets(), filters(), getCurrentWorkflow(), getDetailView(), getHistory(), getModelFromTypeAndId(), getModelsFromTypeAndId(), getModuleObj(), getPageTitle(), getPhpMailer(), index(), mailingListToString(), parseEmailTo(), performAjaxValidation(), prepareMenu(), render(), renderLayout(), renderPartialAjax(), sendUserEmail(), setPageTitle(), throwException(), update(), view(), widget()
Methods inherited from X2Controller
badRequest(), badRequestException(), getBehaviorActions(), isAjaxRequest(), redirectToLogin(), resolveViewFile(), runBehaviorBeforeActionHandlers(), setFileFields(), validateMobileRequest()
Methods inherited from CController
__construct(), accessRules(), afterAction(), afterRender(), beforeRender(), clearPageStates(), createAbsoluteUrl(), createAction(), createActionFromMap(), createUrl(), filterAccessControl(), filterAjaxOnly(), filterPostOnly(), forward(), getAction(), getActionParams(), getCachingStack(), getClips(), getId(), getLayoutFile(), getModule(), getPageState(), getRoute(), getUniqueId(), getViewFile(), getViewPath(), init(), invalidActionParams(), isCachingStackEmpty(), loadPageStates(), missingAction(), processDynamicOutput(), processOutput(), recordCachingAction(), redirect(), refresh(), renderClip(), renderDynamic(), renderDynamicInternal(), renderPartial(), renderText(), replaceDynamicOutput(), run(), runAction(), runActionWithFilters(), savePageStates(), setAction(), setPageState()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Constants inherited from CController
STATE_INPUT_NAME
Properties summary
public string $modelClass 'Contacts'
#
Properties inherited from x2base
$actionMenu, $breadcrumbs, $layout, $leftPortlets, $leftWidgets, $menu, $noBackdrop, $portlets
Properties inherited from CController
$defaultAction
Magic properties inherited from CController
$action, $actionParams, $cachingStack, $clips, $id, $module, $pageTitle, $route, $uniqueId, $viewPath
X2CRM Documentation API documentation generated by ApiGen 2.8.0