Class QuotesController
The Quotes module lets users send people a quote with a list of products. Quotes can be converted to invoices.
Quotes can be created, updated, deleted, and converted into invoices from the contacts view. The code for that is in the file components/InlineQuotes.php and is heavily based on ajax calls to this controller.
The function actionConvertToInvoice handles both ajax and non-ajax calls. If called via ajax, it will return the list of quotes for the contact id passed in the ajax call.
- CComponent
- CBaseController
- CController
- X2Controller
- x2base
- QuotesController
Author: David Visbal, Demitri Morgan <demitri@x2engine.com>
Located at x2engine/protected/modules/quotes/controllers/QuotesController.php
public
array
|
#
behaviors( )
Returns a list of behaviors that this controller should behave as. The return value should be an array of behavior configurations indexed by behavior names. Each behavior configuration can be either a string specifying the behavior class or an array of the following structure: 'behaviorName'=>array( 'class'=>'path.to.BehaviorClass', 'property1'=>'value1', 'property2'=>'value2', ) |
public
|
|
public
|
|
public
|
#
actionUpdate( integer $id, mixed $quick = 0 )
Updates a particular model. If update is successful, the browser will be redirected to the 'view' page. |
public
|
#
actionPrint( mixed $id, mixed $inline = false )
Print a quote using a template or the legacy print view. |
public
type
|
#
getPrintQuote( integer $id = null, boolean $email = false )
Generate presentation markup for the quote. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
actionConvertToInvoice( mixed $id )
Convert the Quote into an Invoice |
public
|
#
actionViewInline( type $recordId, mixed $recordType )
Obtain the markup for the inline quotes widget. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
insertMenu( array $selectOptions = array(),
Create a menu for Quotes |
__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()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
STATE_INPUT_NAME
|
public
string
|
$modelClass | 'Quote' |
$actionMenu,
$breadcrumbs,
$layout,
$leftPortlets,
$leftWidgets,
$menu,
$noBackdrop,
$portlets
|
$defaultAction
|
public
|
$model |
#
Model class being dealt with. |
$action,
$actionParams,
$cachingStack,
$clips,
$id,
$module,
$pageTitle,
$route,
$uniqueId,
$viewPath
|