class CouponController extends BaseAdminController

Control View and Action (Model) via Events

Traits

Symfony\Component\DependencyInjection\ContainerAwareTrait

Constants

EMPTY_FORM_NAME

CONTROLLER_TYPE

TEMPLATE_404

Methods

EventDispatcher
getDispatcher()

Return the event dispatcher,

getTranslator()

return the Translator

getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

createForm($name, $type = 'form', array $data = array(), array $options = array())

No description

ContainerInterface
getContainer()

No description

string
getControllerType()

No description

adminLogAppend($resource, $action, $message, $resourceId = null)

Helper to append a message to the admin log.

processTemplateAction( string $template)

This method process the rendering of view called from an admin page

browseAction()

Manage Coupons list display

createAction()

Manage Coupons creation display

updateAction( int $couponId)

Manage Coupons edition display

getConditionEmptyInputAjaxAction( string $conditionId)

Manage Coupons read display

getConditionToUpdateInputAjaxAction( int $couponId, int $conditionIndex)

Manage Coupons read display

saveConditionsAction( int $couponId)

Manage Coupons read display

deleteConditionsAction( int $couponId, int $conditionIndex)

Manage Coupons condition deleteion

getBackOfficeInputsAjaxAction( string $couponServiceId)

Draw the input displayed in the BackOffice allowing Admin to set its Coupon effect

getBackOfficeConditionSummariesAjaxAction( int $couponId)

Draw the input displayed in the BackOffice allowing Admin to set its Coupon effect

deleteAction()

No description

Details

in BaseController at line 128
EventDispatcher getDispatcher()

Return the event dispatcher,

Return Value

EventDispatcher

in BaseController at line 138
Translator getTranslator()

return the Translator

Return Value

Translator

in BaseController at line 545
MailerFactory getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

Return Value

MailerFactory

in BaseController at line 569
BaseForm createForm($name, $type = 'form', array $data = array(), array $options = array())

Parameters

$name
$type
array $data
array $options

Return Value

BaseForm This method builds a thelia form with its name

in BaseController at line 589
ContainerInterface getContainer()

Return Value

ContainerInterface

in BaseAdminController at line 90
string getControllerType()

Return Value

string

in BaseAdminController at line 52
adminLogAppend($resource, $action, $message, $resourceId = null)

Helper to append a message to the admin log.

Parameters

$resource
$action
$message
$resourceId

in BaseAdminController at line 71
Response processTemplateAction( string $template)

This method process the rendering of view called from an admin page

Parameters

string $template the template name

Return Value

Response the response which contains the rendered view

at line 55
Response browseAction()

Manage Coupons list display

Return Value

Response

at line 71
Response createAction()

Manage Coupons creation display

Return Value

Response

at line 122
Response updateAction( int $couponId)

Manage Coupons edition display

Parameters

int $couponId Coupon id

Return Value

Response

at line 272
Response getConditionEmptyInputAjaxAction( string $conditionId)

Manage Coupons read display

Parameters

string $conditionId Condition service id

Return Value

Response

at line 321
Response getConditionToUpdateInputAjaxAction( int $couponId, int $conditionIndex)

Manage Coupons read display

Parameters

int $couponId Coupon id being updated
int $conditionIndex Coupon Condition position in the collection

Return Value

Response

at line 376
Response saveConditionsAction( int $couponId)

Manage Coupons read display

Parameters

int $couponId Coupon id

Return Value

Response

at line 425
Response deleteConditionsAction( int $couponId, int $conditionIndex)

Manage Coupons condition deleteion

Parameters

int $couponId Coupon id
int $conditionIndex Coupon condition index in the collection

Return Value

Response

at line 634
ResponseRest getBackOfficeInputsAjaxAction( string $couponServiceId)

Draw the input displayed in the BackOffice allowing Admin to set its Coupon effect

Parameters

string $couponServiceId Coupon service id

Return Value

ResponseRest

at line 668
ResponseRest getBackOfficeConditionSummariesAjaxAction( int $couponId)

Draw the input displayed in the BackOffice allowing Admin to set its Coupon effect

Parameters

int $couponId Coupon id

Return Value

ResponseRest

at line 839
deleteAction()