Open Journal Systems  3.3.0
DataciteExportDeployment.inc.php
1 <?php
20 // XML attributes
21 define('DATACITE_XMLNS' , 'http://datacite.org/schema/kernel-4');
22 define('DATACITE_XMLNS_XSI' , 'http://www.w3.org/2001/XMLSchema-instance');
23 define('DATACITE_XSI_SCHEMAVERSION' , '4');
24 define('DATACITE_XSI_SCHEMALOCATION' , 'http://schema.datacite.org/meta/kernel-4/metadata.xsd');
25 
28  var $_context;
29 
31  var $_plugin;
32 
37  function getCache() {
38  return $this->_plugin->getCache();
39  }
40 
46  function __construct($context, $plugin) {
47  $this->setContext($context);
48  $this->setPlugin($plugin);
49  }
50 
51  //
52  // Deployment items for subclasses to override
53  //
58  function getRootElementName() {
59  return 'resource';
60  }
61 
66  function getNamespace() {
67  return DATACITE_XMLNS;
68  }
69 
74  function getXmlSchemaInstance() {
75  return DATACITE_XMLNS_XSI;
76  }
77 
82  function getXmlSchemaVersion() {
83  return DATACITE_XSI_SCHEMAVERSION;
84  }
85 
90  function getXmlSchemaLocation() {
91  return DATACITE_XSI_SCHEMALOCATION;
92  }
93 
98  function getSchemaFilename() {
99  return $this->getXmlSchemaLocation();
100  }
101 
102  //
103  // Getter/setters
104  //
109  function setContext($context) {
110  $this->_context = $context;
111  }
112 
117  function getContext() {
118  return $this->_context;
119  }
120 
125  function setPlugin($plugin) {
126  $this->_plugin = $plugin;
127  }
128 
133  function getPlugin() {
134  return $this->_plugin;
135  }
136 
137 }
138 
139 
DataciteExportDeployment\getNamespace
getNamespace()
Definition: DataciteExportDeployment.inc.php:72
DataciteExportDeployment\getXmlSchemaVersion
getXmlSchemaVersion()
Definition: DataciteExportDeployment.inc.php:88
DataciteExportDeployment\getXmlSchemaLocation
getXmlSchemaLocation()
Definition: DataciteExportDeployment.inc.php:96
DataciteExportDeployment
Base class configuring the datacite export process to an application's specifics.
Definition: DataciteExportDeployment.inc.php:26
DataciteExportDeployment\getPlugin
getPlugin()
Definition: DataciteExportDeployment.inc.php:139
DataciteExportDeployment\getCache
getCache()
Definition: DataciteExportDeployment.inc.php:43
DataciteExportDeployment\$_plugin
$_plugin
Definition: DataciteExportDeployment.inc.php:37
DataciteExportDeployment\$_context
$_context
Definition: DataciteExportDeployment.inc.php:31
DataciteExportDeployment\getXmlSchemaInstance
getXmlSchemaInstance()
Definition: DataciteExportDeployment.inc.php:80
DataciteExportDeployment\getSchemaFilename
getSchemaFilename()
Definition: DataciteExportDeployment.inc.php:104
DataciteExportDeployment\getContext
getContext()
Definition: DataciteExportDeployment.inc.php:123
DataciteExportDeployment\getRootElementName
getRootElementName()
Definition: DataciteExportDeployment.inc.php:64
DataciteExportDeployment\setContext
setContext($context)
Definition: DataciteExportDeployment.inc.php:115
DataciteExportDeployment\__construct
__construct($context, $plugin)
Definition: DataciteExportDeployment.inc.php:52
DataciteExportDeployment\setPlugin
setPlugin($plugin)
Definition: DataciteExportDeployment.inc.php:131