Basic class describing a press. More...
Public Member Functions | |
| getContactEmail () | |
| getContactName () | |
| getDescription () | |
| getEnabled () | |
| getId () | |
| getLocalizedDescription () | |
| getLocalizedName () | |
| getName ($locale) | |
| getPath () | |
| getPressPageHeaderLogo () | |
| getPressPageHeaderTitle () | |
| getPrimaryLocale () | |
| getSequence () | |
| & | getSetting ($name, $locale=null) |
| & | getSettings () |
| & | getSupportedFormLocaleNames () |
| & | getSupportedLocaleNames () |
| hasRequiredOnixHeaderFields () | |
| Press () | |
| setContactEmail ($contactEmail) | |
| setContactName ($contactName) | |
| setDescription ($description) | |
| setEnabled ($enabled) | |
| setId ($pressId) | |
| setName ($name) | |
| setPath ($path) | |
| setPrimaryLocale ($primaryLocale) | |
| setSequence ($sequence) | |
| updateSetting ($name, $value, $type=null, $isLocalized=false) | |
Basic class describing a press.
Definition at line 20 of file Press.inc.php.
| Press.getContactEmail | ( | ) |
Get the contact email for this press
Definition at line 87 of file Press.inc.php.
References getSetting().
| Press.getContactName | ( | ) |
Get the contact name for this press
Definition at line 71 of file Press.inc.php.
References getSetting().
| Press.getDescription | ( | ) |
| Press.getEnabled | ( | ) |
| Press.getId | ( | ) |
Get the ID of the press
Definition at line 32 of file Press.inc.php.
Referenced by updateSetting().
| Press.getLocalizedDescription | ( | ) |
Get the localized description of the press.
Definition at line 183 of file Press.inc.php.
| Press.getLocalizedName | ( | ) |
| Press.getName | ( | $ | locale | ) |
| Press.getPath | ( | ) |
| Press.getPressPageHeaderLogo | ( | ) |
Get "localized" press page logo (if applicable).
Definition at line 280 of file Press.inc.php.
References getSetting().
| Press.getPressPageHeaderTitle | ( | ) |
Get "localized" press page title (if applicable). param $home boolean get homepage title
Definition at line 259 of file Press.inc.php.
References getSetting().
| Press.getPrimaryLocale | ( | ) |
Return the primary locale of this press.
Definition at line 152 of file Press.inc.php.
| Press.getSequence | ( | ) |
Get sequence of press in site table of contents.
Definition at line 167 of file Press.inc.php.
| & Press.getSetting | ( | $ | name, | |
| $ | locale = null | |||
| ) |
Retrieve a press setting value.
| $name | string | |
| $locale | string |
Definition at line 203 of file Press.inc.php.
Referenced by getContactEmail(), getContactName(), getName(), getPressPageHeaderLogo(), getPressPageHeaderTitle(), getSupportedFormLocaleNames(), getSupportedLocaleNames(), and hasRequiredOnixHeaderFields().
| & Press.getSettings | ( | ) |
| & Press.getSupportedFormLocaleNames | ( | ) |
Return associative array of all locales supported by forms on the site. These locales are used to provide a language toggle on the main site pages.
Definition at line 234 of file Press.inc.php.
References getSetting().
| & Press.getSupportedLocaleNames | ( | ) |
Return associative array of all locales supported by the site. These locales are used to provide a language toggle on the main site pages.
Definition at line 293 of file Press.inc.php.
References getSetting().
| Press.hasRequiredOnixHeaderFields | ( | ) |
Returns true if this press contains the fields required for creating valid ONIX export metadata.
Definition at line 318 of file Press.inc.php.
References getSetting().
| Press.Press | ( | ) |
Constructor
Definition at line 24 of file Press.inc.php.
| Press.setContactEmail | ( | $ | contactEmail | ) |
Set the contact email for this press
| $contactEmail | string |
Definition at line 95 of file Press.inc.php.
| Press.setContactName | ( | $ | contactName | ) |
Set the contact name for this press
| $contactName | string |
Definition at line 79 of file Press.inc.php.
| Press.setDescription | ( | $ | description | ) |
Set announcement description.
| $description | string | |
| $locale | string |
Definition at line 112 of file Press.inc.php.
| Press.setEnabled | ( | $ | enabled | ) |
| Press.setId | ( | $ | pressId | ) |
Set the ID of the press.
| $announcementId | int |
Definition at line 40 of file Press.inc.php.
| Press.setName | ( | $ | name | ) |
Set the name of the press
| $pressName | string |
Definition at line 56 of file Press.inc.php.
| Press.setPath | ( | $ | path | ) |
| Press.setPrimaryLocale | ( | $ | primaryLocale | ) |
Set the primary locale of this press.
| $locale | string |
Definition at line 160 of file Press.inc.php.
| Press.setSequence | ( | $ | sequence | ) |
Set sequence of press in site table of contents.
| $sequence | float |
Definition at line 175 of file Press.inc.php.
| Press.updateSetting | ( | $ | name, | |
| $ | value, | |||
| $ | type = null, |
|||
| $ | isLocalized = false | |||
| ) |
Update a press setting value.
| $name | string | |
| $value | mixed | |
| $type | string optional | |
| $isLocalized | boolean optional |
Definition at line 216 of file Press.inc.php.
References getId().
1.7.1