Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Market Class Reference
Inheritance diagram for Market:
DataObject

Public Member Functions

 _removeEmptyElements ($value)
 
 getAgentId ()
 
 getAssignedRepresentativeNames ()
 
 getCountriesExcluded ()
 
 getCountriesIncluded ()
 
 getCurrencyCode ()
 
 getDate ()
 
 getDateFormat ()
 
 getDateRole ()
 
 getDiscount ()
 
 getPrice ()
 
 getPriceTypeCode ()
 
 getPublicationFormatId ()
 
 getRegionsExcluded ()
 
 getRegionsIncluded ()
 
 getSupplierId ()
 
 getTaxRateCode ()
 
 getTaxTypeCode ()
 
 getTerritoriesAsString ()
 
 Market ()
 
 setAgentId ($agentId)
 
 setCountriesExcluded ($countriesExcluded)
 
 setCountriesIncluded ($countriesIncluded)
 
 setCurrencyCode ($currencyCode)
 
 setDate ($date)
 
 setDateFormat ($dateFormat)
 
 setDateRole ($dateRole)
 
 setDiscount ($discount)
 
 setPrice ($price)
 
 setPriceTypeCode ($priceTypeCode)
 
 setPublicationFormatId ($publicationFormatId)
 
 setRegionsExcluded ($regionsExcluded)
 
 setRegionsIncluded ($regionsIncluded)
 
 setSupplierId ($supplierId)
 
 setTaxRateCode ($taxRateCode)
 
 setTaxTypeCode ($taxTypeCode)
 
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter ($metadataAdapter)
 
 DataObject ()
 
 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()
 
 $_extractionAdaptersLoaded = false
 
 $_hasLoadableAdapters = false
 
 $_injectionAdaptersLoaded = false
 
 $_metadataExtractionAdapters = array()
 
 $_metadataInjectionAdapters = array()
 

Detailed Description

Basic class describing a Market composite type (used on the ONIX templates for publication formats)

See Also
MarketDAO

Definition at line 17 of file Market.inc.php.

Member Function Documentation

Market::_removeEmptyElements (   $value)

Internal function for an array_filter to remove empty countries. array_filter() can be called without a callback to remove empty array elements but it depends on type juggling and may not be reliable.

Parameters
String$value
Returns
boolean

Definition at line 324 of file Market.inc.php.

Market::getAgentId ( )

Get the id of the assigned agent, if there is one.

Returns
string

Definition at line 254 of file Market.inc.php.

References DataObject\getData().

Referenced by getAssignedRepresentativeNames().

Market::getAssignedRepresentativeNames ( )

Returns a string containing the name of the reps assigned to this Market territory.

Returns
string

Definition at line 299 of file Market.inc.php.

References getAgentId(), DAORegistry\getDAO(), and getSupplierId().

Market::getCountriesExcluded ( )

Get the excluded countries for this market entry

Returns
array

Definition at line 61 of file Market.inc.php.

References DataObject\getData().

Referenced by getTerritoriesAsString().

Market::getCountriesIncluded ( )

Get the included countries for this market entry

Returns
array

Definition at line 45 of file Market.inc.php.

References DataObject\getData().

Referenced by getTerritoriesAsString().

Market::getCurrencyCode ( )

Get the currency code (ONIX value) used for this market (List96).

Returns
string

Definition at line 157 of file Market.inc.php.

References DataObject\getData().

Market::getDate ( )

Get the date for this Market.

Returns
string

Definition at line 141 of file Market.inc.php.

References DataObject\getData().

Market::getDateFormat ( )

Get the date format for this Market.

Returns
string

Definition at line 125 of file Market.inc.php.

References DataObject\getData().

Market::getDateRole ( )

Get the date role for this Market.

Returns
string

Definition at line 109 of file Market.inc.php.

References DataObject\getData().

Market::getDiscount ( )

Get the discount.

Returns
string

Definition at line 189 of file Market.inc.php.

References DataObject\getData().

Market::getPrice ( )

Get the price.

Returns
string

Definition at line 173 of file Market.inc.php.

References DataObject\getData().

Market::getPriceTypeCode ( )

Get the price type code (ONIX code) used for this market (List58).

Returns
string

Definition at line 206 of file Market.inc.php.

References DataObject\getData().

Market::getPublicationFormatId ( )

get publication format id

Returns
int

Definition at line 29 of file Market.inc.php.

References DataObject\getData().

Market::getRegionsExcluded ( )

Get the excluded regions for this market entry

Returns
array

Definition at line 93 of file Market.inc.php.

References DataObject\getData().

Referenced by getTerritoriesAsString().

Market::getRegionsIncluded ( )

Get the included regions for this market entry

Returns
array

Definition at line 77 of file Market.inc.php.

References DataObject\getData().

Referenced by getTerritoriesAsString().

Market::getSupplierId ( )

Get the id of the assigned supplier, if there is one.

Returns
string

Definition at line 270 of file Market.inc.php.

References DataObject\getData().

Referenced by getAssignedRepresentativeNames().

Market::getTaxRateCode ( )

Get the tax rate code (ONIX value) used for this market (List62).

Returns
string

Definition at line 222 of file Market.inc.php.

References DataObject\getData().

Market::getTaxTypeCode ( )

Get the tax type code used (ONIX value) for this market (List171).

Returns
string

Definition at line 238 of file Market.inc.php.

References DataObject\getData().

Market::getTerritoriesAsString ( )

Returns a string briefly describing the territories for this market

Returns
string

Definition at line 286 of file Market.inc.php.

References getCountriesExcluded(), getCountriesIncluded(), getRegionsExcluded(), and getRegionsIncluded().

Market::Market ( )

Constructor

Definition at line 21 of file Market.inc.php.

Market::setAgentId (   $agentId)

Set the id of the assigned agent.

Parameters
int$agentId

Definition at line 262 of file Market.inc.php.

References DataObject\setData().

Market::setCountriesExcluded (   $countriesExcluded)

Set the excluded country list for this market entry

Parameters
$countriesExcludedarray

Definition at line 69 of file Market.inc.php.

References DataObject\setData().

Market::setCountriesIncluded (   $countriesIncluded)

Set the included country list for this market entry

Parameters
$countriesIncludedarray

Definition at line 53 of file Market.inc.php.

References DataObject\setData().

Market::setCurrencyCode (   $currencyCode)

Set the currency code (ONIX value) for a market.

Parameters
string$currencyCode

Definition at line 165 of file Market.inc.php.

References DataObject\setData().

Market::setDate (   $date)

Set this Market's date.

Parameters
string$date

Definition at line 149 of file Market.inc.php.

References DataObject\setData().

Market::setDateFormat (   $dateFormat)

Set the date format for this Market. (List55)

Parameters
string$dateFormat

Definition at line 133 of file Market.inc.php.

References DataObject\setData().

Market::setDateRole (   $dateRole)

Set the date role for this Market. (List163)

Parameters
String$dateRole

Definition at line 117 of file Market.inc.php.

References DataObject\setData().

Market::setDiscount (   $discount)

Set the discount.

Parameters
string$discount

Definition at line 197 of file Market.inc.php.

References DataObject\setData().

Market::setPrice (   $price)

Set the price.

Parameters
string$price

Definition at line 181 of file Market.inc.php.

References DataObject\setData().

Market::setPriceTypeCode (   $priceTypeCode)

Set the price type code (ONIX code) for a market.

Parameters
string$priceTypeCode

Definition at line 214 of file Market.inc.php.

References DataObject\setData().

Market::setPublicationFormatId (   $publicationFormatId)

set publication format id

Parameters
$pressIdint

Definition at line 37 of file Market.inc.php.

References DataObject\setData().

Market::setRegionsExcluded (   $regionsExcluded)

Set the excluded region list for this market entry

Parameters
$regionsExcludedarray

Definition at line 101 of file Market.inc.php.

References DataObject\setData().

Market::setRegionsIncluded (   $regionsIncluded)

Set the included region list for this market entry

Parameters
$regionsIncludedarray

Definition at line 85 of file Market.inc.php.

References DataObject\setData().

Market::setSupplierId (   $supplierId)

Set the id of the assigned supplier.

Parameters
int$supplierId

Definition at line 278 of file Market.inc.php.

References DataObject\setData().

Market::setTaxRateCode (   $taxRateCode)

Set the tax rate code (ONIX value) for a market.

Parameters
string$taxRateCode

Definition at line 230 of file Market.inc.php.

References DataObject\setData().

Market::setTaxTypeCode (   $taxTypeCode)

Set the tax type code (ONIX value) for a market.

Parameters
string$taxTypeCode

Definition at line 246 of file Market.inc.php.

References DataObject\setData().


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