silverorange Code


Site.SiteAd
/Site/dataobjects/SiteAd.php at line 16

Class SiteAd

SwatObject
└─SwatDBDataObject
└─SiteAd

public class SiteAd
extends SwatDBDataObject

Advertisements that are tracked on an applcation

This class is for tracking advertisements, not for displaying advertisements.

Copyright:
2006-2007 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
See Also:
SiteAdReferrer

Field Summary
Date

$createdate

The date this advertisement was created.

integer

$displayorder

Display order of this advertisement.

integer

$id

Unique identifier for this advertisement.

string

$shortname

A short, textual identifier for this advertisement.

string

$title

A title visible to users for describing this advertisement.

integer

$total_referrers

Total referrals based on this advertisement.

Fields inherited from SwatDB.SwatDBDataObject
class_map, db, id_field, read_only, table
Method Summary
protected void

init()

boolean

loadFromShortname(string shortname)

Loads an ad from the database using the ad shortname.

Methods inherited from SwatDB.SwatDBDataObject
checkDB, delete, deleteInternal, duplicate, generatePropertyHashes, getId, getInternalValue, getLoaderMethod, getModifiedProperties, getProperties, getPublicProperties, getSerializablePrivateProperties, getSerializableSubDataObjects, getSubDataObject, getUsingInternalProperty, getUsingLoaderMethod, guessType, hasInternalValue, hasSubDataObject, init, initFromRow, isModified, load, loadInternal, registerDateProperty, registerInternalProperty, save, saveInternal, saveInternalProperties, saveNewBinding, saveSubDataObjects, serialize, setDatabase, setInternalValue, setSubDataObject, setTable, unserialize, unsetSubDataObject, wakeup

Field Detail

/Site/dataobjects/SiteAd.php at line 46

createdate

public Date $createdate

The date this advertisement was created


/Site/dataobjects/SiteAd.php at line 53

displayorder

public integer $displayorder

Display order of this advertisement


/Site/dataobjects/SiteAd.php at line 25

id

public integer $id

Unique identifier for this advertisement


/Site/dataobjects/SiteAd.php at line 32

shortname

public string $shortname

A short, textual identifier for this advertisement


/Site/dataobjects/SiteAd.php at line 39

title

public string $title

A title visible to users for describing this advertisement


/Site/dataobjects/SiteAd.php at line 60

total_referrers

public integer $total_referrers

Total referrals based on this advertisement


Method Detail

/Site/dataobjects/SiteAd.php at line 65

init

protected void init()

/Site/dataobjects/SiteAd.php at line 83

loadFromShortname

public boolean loadFromShortname(string shortname)

Loads an ad from the database using the ad shortname

Parameters:
shortname - the shortname of the ad.
Returns:
true if the loading was successful and false if it was not.

silverorange Code