Open Monograph Press
3.3.0
Press.inc.php
1
<?php
2
21
import
(
'lib.pkp.classes.context.Context'
);
22
23
class
Press
extends
Context
{
27
function
__construct
() {
28
parent::__construct();
29
}
30
36
function
getLocalizedPageHeaderTitle
() {
37
$titleArray = $this->
getData
(
'name'
);
38
foreach
(array(
AppLocale::getLocale
(),
AppLocale::getPrimaryLocale
()) as $locale) {
39
if
(isset($titleArray[$locale]))
return
$titleArray[$locale];
40
}
41
return
null
;
42
}
43
48
function
getPageHeaderTitle
() {
49
return
$this->
getLocalizedPageHeaderTitle
();
50
}
51
56
function
getLocalizedPageHeaderLogo
() {
57
$logoArray = $this->
getData
(
'pageHeaderLogoImage'
);
58
foreach
(array(
AppLocale::getLocale
(),
AppLocale::getPrimaryLocale
()) as $locale) {
59
if
(isset($logoArray[$locale]))
return
$logoArray[$locale];
60
}
61
return
null
;
62
}
63
68
function
getPageHeaderLogo
() {
69
return
$this->
getLocalizedPageHeaderLogo
();
70
}
71
77
function
hasRequiredOnixHeaderFields
() {
78
if
($this->
getData
(
'codeType'
) !=
''
&& $this->
getData
(
'codeValue'
) !=
''
) {
79
return
true
;
80
}
else
{
81
return
false
;
82
}
83
}
84
89
public
function
getAssocType
() {
90
return
ASSOC_TYPE_PRESS;
91
}
92
97
function
getDAO
() {
98
return
DAORegistry::getDAO
(
'PressDAO'
);
99
}
100
}
DataObject\getData
& getData($key, $locale=null)
Definition:
DataObject.inc.php:100
Press\hasRequiredOnixHeaderFields
hasRequiredOnixHeaderFields()
Definition:
Press.inc.php:77
Press\getAssocType
getAssocType()
Definition:
Press.inc.php:89
Press\getDAO
getDAO()
Definition:
Press.inc.php:97
DAORegistry\getDAO
static & getDAO($name, $dbconn=null)
Definition:
DAORegistry.inc.php:57
Context
Basic class describing a context.
Definition:
Context.inc.php:23
Press\getLocalizedPageHeaderTitle
getLocalizedPageHeaderTitle()
Definition:
Press.inc.php:36
AppLocale\getPrimaryLocale
static getPrimaryLocale()
Definition:
env1/MockAppLocale.inc.php:95
Press\getLocalizedPageHeaderLogo
getLocalizedPageHeaderLogo()
Definition:
Press.inc.php:56
Press\getPageHeaderTitle
getPageHeaderTitle()
Definition:
Press.inc.php:48
Press\getPageHeaderLogo
getPageHeaderLogo()
Definition:
Press.inc.php:68
Press
Basic class describing a press.
Definition:
Press.inc.php:23
AppLocale\getLocale
static getLocale()
Definition:
env1/MockAppLocale.inc.php:40
Press\__construct
__construct()
Definition:
Press.inc.php:27
classes
press
Press.inc.php
Generated on Fri Aug 28 2020 14:53:24 for Open Monograph Press by
1.8.17