Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
Ad Class Reference
Inheritance diagram for Ad:
DataObject

Public Member Functions

 Ad (&$openAdsConnection)
 
 getAdId ()
 
 getHtml ()
 
 getName ()
 
 setAdId ($adId)
 
 setName ($name)
 
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter (&$metadataAdapter)
 
 DataObject ($callHooks=true)
 
extractMetadata (&$metadataSchema)
 
 getAdditionalMetadataFieldNames ()
 
getAllData ()
 
getData ($key, $locale=null)
 
 getHasLoadableAdapters ()
 
 getId ()
 
 getLocaleMetadataFieldNames ()
 
getLocalizedData ($key)
 
 getMetadataFieldNames ($translated=true)
 
 getSetMetadataFieldNames ($translated=true)
 
getSupportedExtractionAdapters ()
 
getSupportedInjectionAdapters ()
 
getSupportedMetadataSchemas ()
 
 hasData ($key, $locale=null)
 
 injectMetadata (&$metadataDescription)
 
 removeSupportedMetadataAdapter ($metadataSchemaName)
 
 setAllData (&$data)
 
 setData ($key, $value, $locale=null)
 
 setHasLoadableAdapters ($hasLoadableAdapters)
 
 setId ($id)
 
upcastTo (&$targetObject)
 

Additional Inherited Members

- Public Attributes inherited from DataObject
 $_data = array()
 

Detailed Description

Abstract an OpenAds ad.

Definition at line 20 of file Ad.inc.php.

Member Function Documentation

Ad::Ad ( $openAdsConnection)

Constructor

Parameters
$openAdsConnectionobject

Definition at line 27 of file Ad.inc.php.

Ad::getAdId ( )

Get the openAds ad ID for this ad.

Returns
string

Definition at line 35 of file Ad.inc.php.

References DataObject\getData().

Referenced by getHtml().

Ad::getHtml ( )

Using the openAds connection, get the include HTML for this ad.

Returns
string

Definition at line 67 of file Ad.inc.php.

References getAdId().

Ad::getName ( )

Get this ad's name.

Returns
string

Definition at line 51 of file Ad.inc.php.

References DataObject\getData().

Ad::setAdId (   $adId)

Set the openAds ad ID for this ad.

Parameters
$adIdstring

Definition at line 43 of file Ad.inc.php.

References DataObject\setData().

Ad::setName (   $name)

Set this ad's name.

Parameters
$namestring

Definition at line 59 of file Ad.inc.php.

References DataObject\setData().


The documentation for this class was generated from the following file: