Class MatukioHelperFees

since 3.0.0
package MatukioEvents

 Methods

Calculate the absolute fee for this event

calculateAbsoluteFee(object $fee, object $event) : string
Static
since 7.0.0

Parameters

$fee

object

Fee

$event

object

Event

Returns

string

Gets the Edit field for the different prices :)

getDifferentFeeEdit(integer $num, array $fee = null, boolean $acl = true) : string
Static

Parameters

$num

integer
  • The number (current count)

$fee

array
  • The fee array.. need to convert to std class

$acl

boolean
  • ACL usage

Returns

string

Gets a formated different fee

getDifferentFeeFormated(object $f, object $event, boolean $absolute = false, object $tax = null) : string
Static

Parameters

$f

object
  • The fee

$event

object
  • The event

$absolute

boolean
  • Absolute values (enforce or on setting)

$tax

object
  • Optional tax

Returns

string

Get the absolute value for a different fee

getDifferentFeeValue(object $f, object $event) : mixed
Static

Parameters

$f

object
  • The fee

$event

object
  • THe event

Returns

mixed

Get Fees

getDifferentFees(object $event) : array | mixed
Static
since 7.0.0

Parameters

$event

object

Event

Returns

arraymixed

Gets all fees in an objectlist out of the database Caches result - so query only once with different parameters each request!

getFees(mixed $published = 1, integer $published_up_down = 1, string $order_by = "title ASC") : mixed
Static

Parameters

$published

mixed
  • Published parameter, 0, 1 or anything else for all

$published_up_down

integer
  • bool int

$order_by

string
  • order by (default title ASC)

Returns

mixed

Gets the fees inlcuding (if existing) the override

getFeesIncOverride(object $event) : array | mixed
Static

Parameters

$event

object
  • The event

Returns

arraymixed

Get the input for fees

getFeesInput(double $value, string $event, string $name, string $id = null) : string
Static
since 7.0.0

Parameters

$value

double

Value

$event

string

Event

$name

string

Name of the Input

$id

string

Id of the Input

Exceptions

\Exception

Returns

string

Gets the different fees output for this event

getFeesShow(object $event) : string
Static

Parameters

$event

object
  • The event

Returns

string

Gets the override fees (converting to feeobj)

getOverrideFees(string $json, $frontend = true) : array
Static

Parameters

$json

string
  • The json

$frontend

Returns

array

Returns the total payment if different fees are used

getPaymentTotal(object $event) : integer
Static

Parameters

$event

object
  • The event

Exceptions

\Exception - if the coupon code is not valid and on database errors

Returns

integer

 Properties

 

$fees

$fees 

Default

null
Static