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

Public Member Functions

 getDate ()
 
 getDateFormat ()
 
 getNameForONIXCode ()
 
 getPublicationFormatId ()
 
 getReadableDates ()
 
 getRole ()
 
 isFreeText ()
 
 isHijriCalendar ()
 
 PublicationDate ()
 
 setDate ($date)
 
 setDateFormat ($format)
 
 setPublicationformatId ($publicationFormatId)
 
 setRole ($role)
 
- 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)
 

Public Attributes

 $dateFormats
 
- Public Attributes inherited from DataObject
 $_data = array()
 
 $_extractionAdaptersLoaded = false
 
 $_hasLoadableAdapters = false
 
 $_injectionAdaptersLoaded = false
 
 $_metadataExtractionAdapters = array()
 
 $_metadataInjectionAdapters = array()
 

Detailed Description

Basic class describing a publication date for a format (used on the ONIX templates for publication formats)

See Also
PublicationDateDAO

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

Member Function Documentation

PublicationDate::getDate ( )

Get the date for the publication date

Returns
string

Definition at line 106 of file PublicationDate.inc.php.

References getDateFormat().

PublicationDate::getDateFormat ( )

Get the date format for the publication date

Returns
string

Definition at line 80 of file PublicationDate.inc.php.

References DAORegistry\getDAO().

Referenced by getDate().

PublicationDate::getNameForONIXCode ( )

Get the human readable name for this ONIX code

Returns
string

Definition at line 88 of file PublicationDate.inc.php.

PublicationDate::getPublicationFormatId ( )

get publication format id

Returns
int

Definition at line 40 of file PublicationDate.inc.php.

References DataObject\setData().

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.

Returns
string

Definition at line 142 of file PublicationDate.inc.php.

PublicationDate::getRole ( )

Get the ONIX code for the publication date

Returns
string

Definition at line 64 of file PublicationDate.inc.php.

References DataObject\setData().

PublicationDate::isFreeText ( )

determines whether or not the date should be parsed out with a date format.

Returns
boolean

Definition at line 127 of file PublicationDate.inc.php.

PublicationDate::isHijriCalendar ( )

Determines if this date is from the Hijri calendar.

Returns
boolean

Definition at line 114 of file PublicationDate.inc.php.

PublicationDate::PublicationDate ( )

Constructor

Definition at line 28 of file PublicationDate.inc.php.

PublicationDate::setDate (   $date)

Set the date for this publication date

Parameters
$datestring

Definition at line 98 of file PublicationDate.inc.php.

References DataObject\getData().

PublicationDate::setDateFormat (   $format)

Set the date format for this publication date (ONIX Codelist List55)

Parameters
$formatstring

Definition at line 72 of file PublicationDate.inc.php.

References DataObject\getData().

PublicationDate::setPublicationformatId (   $publicationFormatId)

set publication format id

Parameters
$pressIdint

Definition at line 48 of file PublicationDate.inc.php.

References DataObject\setData().

PublicationDate::setRole (   $role)

Set the ONIX code for this publication date

Parameters
$rolestring

Definition at line 56 of file PublicationDate.inc.php.

References DataObject\getData().

Member Data Documentation

$dateFormats PublicationDate::$dateFormats

the formats for this publication date

Definition at line 23 of file PublicationDate.inc.php.


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