TIP_Sponsor

Introduction

Sponsor module

Source file
/Type/module/content/sponsor.php
Extends
TIP_Content

Provides a basic implementation for a sponsor module.

Properties

uri_field : string

The field of the destination URI of the sponsor

access
protected

count_field : string

The field of the counter of times the sponsor was showed

access
protected

counted_field : string

The field of the counter of past actionView

access
protected

hitted_field : string

The field of the counter of past times the sponsor was showed

access
protected

Methods

__construct ($options)

Constructor

$options
array
Properties values
lines
83 - 86
access
protected

Initializes a TIP_Sponsor instance.

postConstructor ()

lines
88 - 98
access
protected

__destruct ()

Destructor

lines
104 - 110

Updates the current sponsor statistics

actionView ($id) : bool

Perform a view action

$id
mixed
The identifier of the row to view
lines
168 - 183
access
protected

Overrides the default view providing a redirection to the sponsor site, if the 'uri_field' is not empty. If the destination URI is not defined, performs the default view action.

TIP_Sponsor was last modified by TiP on Mon 25 May 2009 06:22:25 PM CEST
Hosted by BerliOS Developer Logo