Open Journal Systems  3.3.0
DOAJExportDeployment.inc.php
1 <?php
20 // XML attributes
21 define('DOAJ_XMLNS_XSI' , 'http://www.w3.org/2001/XMLSchema-instance');
22 define('DOAJ_XSI_SCHEMALOCATION' , 'http://doaj.org/static/doaj/doajArticles.xsd');
23 
26  var $_context;
27 
29  var $_plugin;
30 
35  function getCache() {
36  return $this->_plugin->getCache();
37  }
38 
44  function __construct($context, $plugin) {
45  $this->setContext($context);
46  $this->setPlugin($plugin);
47  }
48 
49  //
50  // Deployment items for subclasses to override
51  //
56  function getRootElementName() {
57  return 'records';
58  }
59 
64  function getXmlSchemaInstance() {
65  return DOAJ_XMLNS_XSI;
66  }
67 
72  function getXmlSchemaLocation() {
73  return DOAJ_XSI_SCHEMALOCATION;
74  }
75 
80  function getSchemaFilename() {
81  return 'doajArticles.xsd';
82  }
83 
84  //
85  // Getter/setters
86  //
91  function setContext($context) {
92  $this->_context = $context;
93  }
94 
99  function getContext() {
100  return $this->_context;
101  }
102 
107  function setPlugin($plugin) {
108  $this->_plugin = $plugin;
109  }
110 
115  function getPlugin() {
116  return $this->_plugin;
117  }
118 
119 }
120 
121 
DOAJExportDeployment\getXmlSchemaLocation
getXmlSchemaLocation()
Definition: DOAJExportDeployment.inc.php:78
DOAJExportDeployment\getRootElementName
getRootElementName()
Definition: DOAJExportDeployment.inc.php:62
DOAJExportDeployment\getXmlSchemaInstance
getXmlSchemaInstance()
Definition: DOAJExportDeployment.inc.php:70
DOAJExportDeployment\setContext
setContext($context)
Definition: DOAJExportDeployment.inc.php:97
DOAJExportDeployment\__construct
__construct($context, $plugin)
Definition: DOAJExportDeployment.inc.php:50
DOAJExportDeployment\$_context
$_context
Definition: DOAJExportDeployment.inc.php:29
DOAJExportDeployment\$_plugin
$_plugin
Definition: DOAJExportDeployment.inc.php:35
DOAJExportDeployment\setPlugin
setPlugin($plugin)
Definition: DOAJExportDeployment.inc.php:113
DOAJExportDeployment
Base class configuring the DOAJ export process to an application's specifics.
Definition: DOAJExportDeployment.inc.php:24
DOAJExportDeployment\getSchemaFilename
getSchemaFilename()
Definition: DOAJExportDeployment.inc.php:86
DOAJExportDeployment\getPlugin
getPlugin()
Definition: DOAJExportDeployment.inc.php:121
DOAJExportDeployment\getContext
getContext()
Definition: DOAJExportDeployment.inc.php:105
DOAJExportDeployment\getCache
getCache()
Definition: DOAJExportDeployment.inc.php:41