IP.Board  3.3.0
IPSAdCodeNexus Class Reference

IP.Nexus Advertisements Class. More...

Static Public Member Functions

static getAdById ($id)
static getAdCode ($key)
static getGobalCode ($position)
static setGlobalCode ($position, $code)
static userCanViewAds ()

Static Public Attributes

static $footerCode = ''
static $headerCode = ''

Detailed Description

IP.Nexus Advertisements Class.


Member Function Documentation

static getAdById ( id) [static]

Get Specific Ad

Parameters:
int$idID number from nexus_ads
Returns:
string HTML for advertisement
static getAdCode ( key) [static]

Get Ad Code

Parameters:
string$keyKey for location
Returns:
string HTML for advertisement

Example Usage:

 echo ipsRegistry::getClass('IPSAdCode')->getAdCode('ad_code_global_header');
static getGobalCode ( position) [static]

Retrieves global advertising code for display

Parameters:
string$positionheader or footer
string$codeCode to be displayed at specified position
Returns:
void
static setGlobalCode ( position,
code 
) [static]

Sets global advertising code for display

Parameters:
string$positionheader or footer
string$codeKey for code to be displayed at specified position
Returns:
void
static userCanViewAds ( ) [static]

Checks to see if the specified member group can view ads. Nexus controls this per ad, so let's just return true

Returns:
bool true

Field Documentation

$footerCode = '' [static]

Ad code to overwrite the global footer code

$headerCode = '' [static]

Ad code to overwrite the global header code


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