DOAJExportDom Class Reference

DOAJ import/export plugin DOM functions for export. More...

List of all members.

Public Member Functions

 file_ext ($filename)
 formatDate ($date)
generateArticleDom (&$doc, &$journal, &$issue, &$section, &$article)
generateAuthorDom (&$doc, &$journal, &$issue, &$article, &$author)
generateJournalDom (&$doc, &$journal)
 mapLang ($val)


Detailed Description

DOAJ import/export plugin DOM functions for export.

Definition at line 20 of file DOAJExportDom.inc.php.


Member Function Documentation

DOAJExportDom.file_ext ( filename  ) 

Get the file extension of a filename.

Parameters:
$filename 
Returns:
string

Definition at line 171 of file DOAJExportDom.inc.php.

DOAJExportDom.formatDate ( date  ) 

Format a date by Y-m-d format.

Parameters:
$date string
Returns:
string

Definition at line 180 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().

& DOAJExportDom.generateArticleDom ( &$  doc,
&$  journal,
&$  issue,
&$  section,
&$  article 
)

Generate the DOM tree for a given article.

Parameters:
$doc object DOM object
$journal object Journal
$issue object Issue
$section object Section
$article object Article

Definition at line 57 of file DOAJExportDom.inc.php.

References formatDate(), generateAuthorDom(), mapLang(), String.substr(), and Request.url().

Referenced by generateJournalDom().

& DOAJExportDom.generateAuthorDom ( &$  doc,
&$  journal,
&$  issue,
&$  article,
&$  author 
)

Generate the author export DOM tree.

Parameters:
$doc object DOM object
$journal object Journal
$issue object Issue
$article object Article
$author object Author

Definition at line 154 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().

& DOAJExportDom.generateJournalDom ( &$  doc,
&$  journal 
)

Generate the export DOM tree for a given journal.

Parameters:
$doc object DOM object
$journal object Journal to export

Definition at line 26 of file DOAJExportDom.inc.php.

References generateArticleDom(), and DAORegistry.getDAO().

Referenced by DOAJPlugin.exportJournal().

DOAJExportDom.mapLang ( val  ) 

Map a language from a 2-letter code to a 3-letter code. FIXME: This should be moved to XML and reconciled against other mapping implementations.

Parameters:
$val string 2-letter language code to map
Returns:
string

Definition at line 192 of file DOAJExportDom.inc.php.

Referenced by generateArticleDom().


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

Generated on Mon Jul 14 10:55:41 2008 for Open Journal Systems by  doxygen 1.5.6