|
Open Monograph Press
3.3.0
|
Data Fields | |
| $dateFormats | |
Data Fields inherited from DataObject | |
| $_data = array() | |
| $_extractionAdaptersLoaded = false | |
| $_hasLoadableAdapters = false | |
| $_injectionAdaptersLoaded = false | |
| $_metadataExtractionAdapters = array() | |
| $_metadataInjectionAdapters = array() | |
Basic class describing a publication date for a format (used on the ONIX templates for publication formats)
Definition at line 17 of file PublicationDate.inc.php.
| PublicationDate::__construct | ( | ) |
Constructor
Reimplemented from DataObject.
Definition at line 28 of file PublicationDate.inc.php.
References DAORegistry\getDAO().
| PublicationDate::getDate | ( | ) |
Get the date for the publication date
Definition at line 106 of file PublicationDate.inc.php.
References DataObject\getData().
Referenced by getReadableDates(), and getUnixTime().
| PublicationDate::getDateFormat | ( | ) |
Get the date format for the publication date
Definition at line 80 of file PublicationDate.inc.php.
References DataObject\getData().
Referenced by getReadableDates(), getUnixTime(), isFreeText(), and isHijriCalendar().
| PublicationDate::getNameForONIXCode | ( | ) |
Get the human readable name for this ONIX code
Definition at line 88 of file PublicationDate.inc.php.
References DAORegistry\getDAO(), and getRole().
| PublicationDate::getPublicationFormatId | ( | ) |
get publication format id
Definition at line 40 of file PublicationDate.inc.php.
References DataObject\getData().
| PublicationDate::getReadableDates | ( | ) |
returns a readable version of the entered date, based on the format specified from List55. Necessary, so it can be parsed correctly in the template.
Definition at line 142 of file PublicationDate.inc.php.
References $dateFormats, PKPApplication\get(), getDate(), getDateFormat(), isFreeText(), and isHijriCalendar().
| PublicationDate::getRole | ( | ) |
Get the ONIX code for the publication date
Definition at line 64 of file PublicationDate.inc.php.
References DataObject\getData().
Referenced by getNameForONIXCode().
| PublicationDate::getUnixTime | ( | ) |
Return a best guess of the UNIX time corresponding to this date
Definition at line 221 of file PublicationDate.inc.php.
References getDate(), and getDateFormat().
| PublicationDate::isFreeText | ( | ) |
determines whether or not the date should be parsed out with a date format.
Definition at line 127 of file PublicationDate.inc.php.
References getDateFormat().
Referenced by getReadableDates().
| PublicationDate::isHijriCalendar | ( | ) |
Determines if this date is from the Hijri calendar.
Definition at line 114 of file PublicationDate.inc.php.
References getDateFormat().
Referenced by getReadableDates().
| PublicationDate::setDate | ( | $date | ) |
Set the date for this publication date
| $date | string |
Definition at line 98 of file PublicationDate.inc.php.
References DataObject\setData().
| PublicationDate::setDateFormat | ( | $format | ) |
Set the date format for this publication date (ONIX Codelist List55)
| $format | string |
Definition at line 72 of file PublicationDate.inc.php.
References DataObject\setData().
| PublicationDate::setPublicationFormatId | ( | $publicationFormatId | ) |
set publication format id
| $publicationFormatId | int |
Definition at line 48 of file PublicationDate.inc.php.
References DataObject\setData().
| PublicationDate::setRole | ( | $role | ) |
Set the ONIX code for this publication date
| $role | string |
Definition at line 56 of file PublicationDate.inc.php.
References DataObject\setData().
| $dateFormats PublicationDate::$dateFormats |
the formats for this publication date
Definition at line 23 of file PublicationDate.inc.php.
Referenced by getReadableDates().