Public Member Functions

PublicationDate Class Reference

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

List of all members.

Public Member Functions

 getDate ()
 getDate ()
 getDateFormat ()
 getDateFormat ()
 getNameForONIXCode ()
 getNameForONIXCode ()
 getPublicationFormatId ()
 getPublicationFormatId ()
 getReadableDates ()
 getReadableDates ()
 getRole ()
 getRole ()
 isFreeText ()
 isFreeText ()
 isHijriCalendar ()
 isHijriCalendar ()
 PublicationDate ()
 PublicationDate ()
 setDate ($date)
 setDate ($date)
 setDateFormat ($format)
 setDateFormat ($format)
 setPublicationformatId ($publicationFormatId)
 setPublicationformatId ($publicationFormatId)
 setRole ($role)
 setRole ($role)

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 16 of file PublicationDate.inc.php.


Member Function Documentation

PublicationDate.getDate (  ) 

Get the date for the publication date

Returns:
string

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

Referenced by getReadableDates().

PublicationDate.getDate (  ) 

Get the date for the publication date

Returns:
string

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

PublicationDate.getDateFormat (  ) 

Get the date format for the publication date

Returns:
string

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

Referenced by getReadableDates(), isFreeText(), and isHijriCalendar().

PublicationDate.getDateFormat (  ) 

Get the date format for the publication date

Returns:
string

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

PublicationDate.getNameForONIXCode (  ) 

Get the human readable name for this ONIX code

Returns:
string

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

References getRole().

PublicationDate.getNameForONIXCode (  ) 

Get the human readable name for this ONIX code

Returns:
string

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

References getRole().

PublicationDate.getPublicationFormatId (  ) 

get publication format id

Returns:
int

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

PublicationDate.getPublicationFormatId (  ) 

get publication format id

Returns:
int

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

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 138 of file PublicationDate.inc.php.

References getDate(), getDateFormat(), isFreeText(), and isHijriCalendar().

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 138 of file PublicationDate.inc.php.

References getDate(), getDateFormat(), isFreeText(), and isHijriCalendar().

PublicationDate.getRole (  ) 

Get the ONIX code for the publication date

Returns:
string

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

Referenced by getNameForONIXCode().

PublicationDate.getRole (  ) 

Get the ONIX code for the publication date

Returns:
string

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

PublicationDate.isFreeText (  ) 

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

Returns:
boolean

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

References getDateFormat().

Referenced by getReadableDates().

PublicationDate.isFreeText (  ) 

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

Returns:
boolean

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

References getDateFormat().

PublicationDate.isHijriCalendar (  ) 

Determines if this date is from the Hijri calendar.

Returns:
boolean

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

References getDateFormat().

PublicationDate.isHijriCalendar (  ) 

Determines if this date is from the Hijri calendar.

Returns:
boolean

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

References getDateFormat().

Referenced by getReadableDates().

PublicationDate.PublicationDate (  ) 

Constructor

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

PublicationDate.PublicationDate (  ) 

Constructor

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

PublicationDate.setDate ( date  ) 

Set the date for this publication date

Parameters:
$date string

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

PublicationDate.setDate ( date  ) 

Set the date for this publication date

Parameters:
$date string

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

PublicationDate.setDateFormat ( format  ) 

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

Parameters:
$format string

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

PublicationDate.setDateFormat ( format  ) 

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

Parameters:
$format string

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

PublicationDate.setPublicationformatId ( publicationFormatId  ) 

set publication format id

Parameters:
$pressId int

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

PublicationDate.setPublicationformatId ( publicationFormatId  ) 

set publication format id

Parameters:
$pressId int

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

PublicationDate.setRole ( role  ) 

Set the ONIX code for this publication date

Parameters:
$role string

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

PublicationDate.setRole ( role  ) 

Set the ONIX code for this publication date

Parameters:
$role string

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


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