Basic class describing a Market composite type (used on the ONIX templates for publication formats). More...
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) | |
Basic class describing a Market composite type (used on the ONIX templates for publication formats).
Definition at line 16 of file Market.inc.php.
| 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.
| String | $value |
Definition at line 323 of file Market.inc.php.
| Market.getAgentId | ( | ) |
Get the id of the assigned agent, if there is one.
Definition at line 253 of file Market.inc.php.
Referenced by getAssignedRepresentativeNames().
| Market.getAssignedRepresentativeNames | ( | ) |
Returns a string containing the name of the reps assigned to this Market territory.
Definition at line 298 of file Market.inc.php.
References getAgentId(), and getSupplierId().
| Market.getCountriesExcluded | ( | ) |
Get the excluded countries for this market entry
Definition at line 60 of file Market.inc.php.
Referenced by getTerritoriesAsString().
| Market.getCountriesIncluded | ( | ) |
Get the included countries for this market entry
Definition at line 44 of file Market.inc.php.
Referenced by getTerritoriesAsString().
| Market.getCurrencyCode | ( | ) |
Get the currency code (ONIX value) used for this market (List96).
Definition at line 156 of file Market.inc.php.
| Market.getDate | ( | ) |
| Market.getDateFormat | ( | ) |
| Market.getDateRole | ( | ) |
| Market.getDiscount | ( | ) |
| Market.getPrice | ( | ) |
| Market.getPriceTypeCode | ( | ) |
Get the price type code (ONIX code) used for this market (List58).
Definition at line 205 of file Market.inc.php.
| Market.getPublicationFormatId | ( | ) |
| Market.getRegionsExcluded | ( | ) |
Get the excluded regions for this market entry
Definition at line 92 of file Market.inc.php.
Referenced by getTerritoriesAsString().
| Market.getRegionsIncluded | ( | ) |
Get the included regions for this market entry
Definition at line 76 of file Market.inc.php.
Referenced by getTerritoriesAsString().
| Market.getSupplierId | ( | ) |
Get the id of the assigned supplier, if there is one.
Definition at line 269 of file Market.inc.php.
Referenced by getAssignedRepresentativeNames().
| Market.getTaxRateCode | ( | ) |
Get the tax rate code (ONIX value) used for this market (List62).
Definition at line 221 of file Market.inc.php.
| Market.getTaxTypeCode | ( | ) |
Get the tax type code used (ONIX value) for this market (List171).
Definition at line 237 of file Market.inc.php.
| Market.getTerritoriesAsString | ( | ) |
Returns a string briefly describing the territories for this market
Definition at line 285 of file Market.inc.php.
References getCountriesExcluded(), getCountriesIncluded(), getRegionsExcluded(), and getRegionsIncluded().
| Market.Market | ( | ) |
Constructor
Definition at line 20 of file Market.inc.php.
| Market.setAgentId | ( | $ | agentId | ) |
Set the id of the assigned agent.
| int | $agentId |
Definition at line 261 of file Market.inc.php.
| Market.setCountriesExcluded | ( | $ | countriesExcluded | ) |
Set the excluded country list for this market entry
| $countriesExcluded | array |
Definition at line 68 of file Market.inc.php.
| Market.setCountriesIncluded | ( | $ | countriesIncluded | ) |
Set the included country list for this market entry
| $countriesIncluded | array |
Definition at line 52 of file Market.inc.php.
| Market.setCurrencyCode | ( | $ | currencyCode | ) |
Set the currency code (ONIX value) for a market.
| string | $currencyCode |
Definition at line 164 of file Market.inc.php.
| Market.setDate | ( | $ | date | ) |
| Market.setDateFormat | ( | $ | dateFormat | ) |
Set the date format for this Market. (List55)
| string | $dateFormat |
Definition at line 132 of file Market.inc.php.
| Market.setDateRole | ( | $ | dateRole | ) |
Set the date role for this Market. (List163)
| String | $dateRole |
Definition at line 116 of file Market.inc.php.
| Market.setDiscount | ( | $ | discount | ) |
| Market.setPrice | ( | $ | price | ) |
| Market.setPriceTypeCode | ( | $ | priceTypeCode | ) |
Set the price type code (ONIX code) for a market.
| string | $priceTypeCode |
Definition at line 213 of file Market.inc.php.
| Market.setPublicationFormatId | ( | $ | publicationFormatId | ) |
| Market.setRegionsExcluded | ( | $ | regionsExcluded | ) |
Set the excluded region list for this market entry
| $regionsExcluded | array |
Definition at line 100 of file Market.inc.php.
| Market.setRegionsIncluded | ( | $ | regionsIncluded | ) |
Set the included region list for this market entry
| $regionsIncluded | array |
Definition at line 84 of file Market.inc.php.
| Market.setSupplierId | ( | $ | supplierId | ) |
Set the id of the assigned supplier.
| int | $supplierId |
Definition at line 277 of file Market.inc.php.
| Market.setTaxRateCode | ( | $ | taxRateCode | ) |
Set the tax rate code (ONIX value) for a market.
| string | $taxRateCode |
Definition at line 229 of file Market.inc.php.
| Market.setTaxTypeCode | ( | $ | taxTypeCode | ) |
Set the tax type code (ONIX value) for a market.
| string | $taxTypeCode |
Definition at line 245 of file Market.inc.php.
1.7.1