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

  • WorkflowController
  • Overview
  • Package
  • Class
  • Tree

Class WorkflowController

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

Specifies the access control rules. This method is used by the 'accessControl' filter.

Specifies the access control rules. This method is used by the 'accessControl' filter.

Returns

array
access control rules

Overrides

CController::accessRules()
public
# actionIndex( )
public
# actionAdmin( )
public
# actionView( integer $id )

Displays workflow table/funnel diagram or the pipeline

Displays workflow table/funnel diagram or the pipeline

Parameters

$id
integer
$id id of the workflow record
public
# actionCreate( )
public
# actionUpdate( mixed $id )
public
# actionDelete( mixed $id )
public
# actionGetWorkflow( mixed $workflowId, mixed $modelId, mixed $type )

Render funnel for inline workflow widget

Render funnel for inline workflow widget

public
# renderFunnelView( mixed $workflowId, mixed $dateRange, mixed $users = '', mixed $modelId = 0, mixed $modelType = '' )

Render funnel for workflow view

Render funnel for workflow view

public
# renderInlineFunnelView( mixed $workflowId, mixed $modelId = 0, mixed $type = '' )
public
# actionGetStageDetails( mixed $workflowId, mixed $stage, mixed $modelId, mixed $type )
public
# actionUpdateStageDetails( mixed $id )
public
# actionMoveFromStageAToStageB( )

Moves a record up or down through a workflow. Called via AJAX.

Moves a record up or down through a workflow. Called via AJAX.

public
# actionStartStage( mixed $workflowId, mixed $stageNumber, mixed $modelId, mixed $type )
public
# actionAjaxAddADeal( integer $workflowId, integer $stageNumber, integer $modelId = null, string $type, mixed $recordName = null )

Called via ajax to add a deal to the pipeline

Called via ajax to add a deal to the pipeline

Parameters

$workflowId
integer
$workflowId the id of the workflow
$stageNumber
integer
$stageNumber the number of the stage
$modelId
integer
$modelId the id of the associated model
$type
string
$type the association type of the associated model
$recordName
public
# actionCompleteStage( mixed $workflowId, mixed $stageNumber, mixed $modelId, mixed $type, mixed $comment = '' )
public
# actionRevertStage( mixed $workflowId, mixed $stageNumber, mixed $modelId, mixed $type )
public
# getStageMemberDataProvider( string $type, mixed $workflowId, mixed $dateRange, mixed $stage, mixed $user )

Get a data provider for members of a given type in a given stage

Get a data provider for members of a given type in a given stage

Parameters

$type
string
$type {'contacts', 'opportunities', 'accounts'}
$workflowId
$dateRange
$stage
$user
public
# actionGetStageMembers( mixed $id, mixed $stage, mixed $start, mixed $end, mixed $range, mixed $users, mixed $modelType )
public
# getStageMembers( mixed $workflowId, mixed $stage, mixed $start, mixed $end, mixed $range, mixed $users, mixed $modelType = '' )
public
# actionGetStageValue( mixed $id, mixed $stage, mixed $users, mixed $modelType, mixed $start, mixed $end )
public
# actionGetStages( )
public
# actionChangeUI( )

Called via AJAX. Returns partial view for specified view

Called via AJAX. Returns partial view for specified view

protected
# performAjaxValidation( CModel $model )

Performs the AJAX validation.

Performs the AJAX validation.

Parameters

$model
CModel
the model to be validated

Overrides

x2base::performAjaxValidation()
public
# actionGetItems( mixed $term )

Used for auto-complete methods.

Used for auto-complete methods.

public
# actionGetStageNames( mixed $workflowId, mixed $optional = 'true' )

Used to populate options of stage name dropdowns

Used to populate options of stage name dropdowns

public
# actionGetStageNameItems( mixed $workflowId, mixed $term )

Used for stage name autocomplete inputs

Used for stage name autocomplete inputs

public
# actionGetFinancialFields( mixed $modelType )
public static
# getDateRange( mixed $startKey = 'start', mixed $endKey = 'end', mixed $rangeKey = 'range' )

Calls getDateRange and sets to default range to 'all' if the date range is the expected close date date range

Calls getDateRange and sets to default range to 'all' if the date range is the expected close date date range

public
# insertMenu( array $selectOptions = array(), X2Model $model = null, array $menuParams = null )

Create a menu for Process

Create a menu for Process

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(), actions(), admin(), ajaxResponse(), appLockout(), beforeAction(), behaviors(), checkPermissions(), cleanUpTags(), convertUrls(), create(), decodeQuotes(), denied(), encodeQuotes(), filterSetPortlets(), filters(), getCurrentWorkflow(), getDetailView(), getHistory(), getModelFromTypeAndId(), getModelsFromTypeAndId(), getModuleObj(), getPageTitle(), getPhpMailer(), index(), mailingListToString(), parseEmailTo(), 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(), 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 "Workflow"
#
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