Open Journal Systems  3.3.0
MedraExportDeployment.inc.php
1 <?php
20 // XML attributes
21 define('MEDRA_XMLNS' , 'http://www.editeur.org/onix/DOIMetadata/2.0');
22 define('MEDRA_XMLNS_XSI' , 'http://www.w3.org/2001/XMLSchema-instance');
23 define('MEDRA_XSI_SCHEMAVERSION' , '2.0');
24 define('MEDRA_XSI_SCHEMALOCATION' , 'http://www.medra.org/schema/onix/DOIMetadata/2.0/ONIX_DOIMetadata_2.0.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 getNamespace() {
59  return MEDRA_XMLNS;
60  }
61 
66  function getXmlSchemaInstance() {
67  return MEDRA_XMLNS_XSI;
68  }
69 
74  function getXmlSchemaVersion() {
75  return MEDRA_XSI_SCHEMAVERSION;
76  }
77 
82  function getXmlSchemaLocation() {
83  return MEDRA_XSI_SCHEMALOCATION;
84  }
85 
90  function getSchemaFilename() {
91  return $this->getXmlSchemaLocation();
92  }
93 
94  //
95  // Getter/setters
96  //
101  function setContext($context) {
102  $this->_context = $context;
103  }
104 
109  function getContext() {
110  return $this->_context;
111  }
112 
117  function setPlugin($plugin) {
118  $this->_plugin = $plugin;
119  }
120 
125  function getPlugin() {
126  return $this->_plugin;
127  }
128 
129 }
130 
131 
MedraExportDeployment\$_context
$_context
Definition: MedraExportDeployment.inc.php:31
MedraExportDeployment\setPlugin
setPlugin($plugin)
Definition: MedraExportDeployment.inc.php:123
MedraExportDeployment
Base class configuring the medra export process to an application's specifics.
Definition: MedraExportDeployment.inc.php:26
MedraExportDeployment\getXmlSchemaInstance
getXmlSchemaInstance()
Definition: MedraExportDeployment.inc.php:72
MedraExportDeployment\getContext
getContext()
Definition: MedraExportDeployment.inc.php:115
MedraExportDeployment\getXmlSchemaVersion
getXmlSchemaVersion()
Definition: MedraExportDeployment.inc.php:80
MedraExportDeployment\$_plugin
$_plugin
Definition: MedraExportDeployment.inc.php:37
MedraExportDeployment\getNamespace
getNamespace()
Definition: MedraExportDeployment.inc.php:64
MedraExportDeployment\__construct
__construct($context, $plugin)
Definition: MedraExportDeployment.inc.php:52
MedraExportDeployment\getCache
getCache()
Definition: MedraExportDeployment.inc.php:43
MedraExportDeployment\setContext
setContext($context)
Definition: MedraExportDeployment.inc.php:107
MedraExportDeployment\getXmlSchemaLocation
getXmlSchemaLocation()
Definition: MedraExportDeployment.inc.php:88
MedraExportDeployment\getSchemaFilename
getSchemaFilename()
Definition: MedraExportDeployment.inc.php:96
MedraExportDeployment\getPlugin
getPlugin()
Definition: MedraExportDeployment.inc.php:131