Class MatukioControllercoupons

since 2.0
package MatukioEvents

 Methods

Register extra tasks

__construct() 

Duplicates an or multiple coupons

duplicate() : void

Exceptions

\Exception - If db queries fail

Method to get a model object, loading it if required.

getModel(string $name = 'Coupons', string $prefix = 'MatukioModel', array $config = array('ignore_request' => true)) : object

Parameters

$name

string

The model name. Optional.

$prefix

string

The class prefix. Optional.

$config

array

Configuration array for model. Optional.

Returns

objectThe model.

Toogles publish for the given coupon ids

publish() : void

Exceptions

\Exception - If db queries fail

Removes an coupon

remove() : void

Exceptions

\Exception