IP.Board  3.3.0
app_class_nexus Class Reference

Runs setup for IP.Nexus. More...

Public Member Functions

 __construct (ipsRegistry $registry)
 afterOutputInit (ipsRegistry $registry)

Static Public Member Functions

static calculateTax ($cost, $class, $country, $state)
static formatRenewalTerms ($data)
static getItemImage ($app, $type, $value=0, $renew=FALSE)
static getPackageImage ($app, $type, $id, $holder=FALSE)
static getPackageSelector ($rootOption=NULL, $packageSelect=TRUE, $groupsToExclude=array(), $selected=0, $type=NULL)

Detailed Description

Runs setup for IP.Nexus.

Note:
Is called automatically by ipsRegistry::_getAppClass
See also:
ipsRegistry::_getAppClass

Constructor & Destructor Documentation

__construct ( ipsRegistry registry)

Performs basic setups before output class has been itnitiated

Parameters:
ipsRegistry$registryipsRegistry instance
Returns:
void

Member Function Documentation

afterOutputInit ( ipsRegistry registry)

Performs basic setups after output class has been itnitiated

Parameters:
ipsRegistry$registryipsRegistry instance
Returns:
void
static calculateTax ( cost,
class,
country,
state 
) [static]

Calculate Tax

Parameters:
intCost of item
arrayRow from nexus_tax of the tax class to use
stringCountry code for the location of customer
stringState for location of customer
Returns:
int Tax cost
static formatRenewalTerms ( data) [static]

Format renewal terms

Parameters:
arrayarray( 'unit' => 'm', 'term' => 6, 'price' => 25 )
Returns:
string Human-readable indication of renewal terms
static getItemImage ( app,
type,
value = 0,
renew = FALSE 
) [static]

Get Item Image

Parameters:
stringApp key
stringItem type
intCost, for miscellaneous charges
boolIs renewal
Returns:
string HTML img tag
static getPackageImage ( app,
type,
id,
holder = FALSE 
) [static]

Get Package Image

Parameters:
stringApp
stringItem type
mixedItem ID
boolIf true and there is no image, a holder will be used
Returns:
string URL to image
static getPackageSelector ( rootOption = NULL,
packageSelect = TRUE,
groupsToExclude = array(),
selected = 0,
type = NULL 
) [static]

Get Package Selector

Parameters:
string|nullText for root option. If null, none will be used
boolIf true, we select package, if false, group
arrayList of package groups to skip
int|arraySelected ID(s)
array|nullAcceptable types. If null, all will be used
Returns:
string HTML

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables