Open Monograph Press
3.3.0
CustomLocale.inc.php
1
<?php
2
12
class
CustomLocale
extends
DataObject
{
13
//
14
// Get/set methods
15
//
16
function
getKey
() {
17
return
$this->
getData
(
'key'
);
18
}
19
20
function
setKey
($key) {
21
$this->
setData
(
'key'
, $key);
22
}
23
24
function
getLocale
() {
25
return
$this->
getData
(
'locale'
);
26
}
27
28
function
setLocale
($locale) {
29
$this->
setData
(
'locale'
, $locale);
30
}
31
32
function
getContextId
() {
33
return
$this->
getData
(
'contextId'
);
34
}
35
36
function
setContextId
($contextId) {
37
$this->
setData
(
'contextId'
, $contextId);
38
}
39
40
function
setFileTitle
($title) {
41
$this->
setData
(
'filetitle'
, $title);
42
}
43
44
function
getFileTitle
() {
45
return
$this->
getData
(
'filetitle'
);
46
}
47
48
function
setTitle
($title, $locale) {
49
$this->
setData
(
'title'
, $title, $locale);
50
}
51
52
function
getTitle
($locale) {
53
return
$this->
getData
(
'title'
, $locale);
54
}
55
56
function
getLocalizedTitle
() {
57
return
$this->
getLocalizedData
(
'title'
);
58
}
59
60
function
getPath
() {
61
return
$this->
getData
(
'path'
);
62
}
63
64
function
setPath
($path) {
65
$this->
setData
(
'path'
, $path);
66
}
67
68
function
getFilePath
() {
69
return
$this->
getData
(
'filepath'
);
70
}
71
72
function
setFilePath
($filepath) {
73
$this->
setData
(
'filepath'
, $filepath);
74
}
75
}
76
DataObject\getData
& getData($key, $locale=null)
Definition:
DataObject.inc.php:100
CustomLocale\setPath
setPath($path)
Definition:
CustomLocale.inc.php:64
CustomLocale\setFileTitle
setFileTitle($title)
Definition:
CustomLocale.inc.php:40
DataObject\getLocalizedData
getLocalizedData($key, $preferredLocale=null)
Definition:
DataObject.inc.php:71
CustomLocale\getFilePath
getFilePath()
Definition:
CustomLocale.inc.php:68
DataObject
Any class with an associated DAO should extend this class.
Definition:
DataObject.inc.php:18
CustomLocale
Definition:
CustomLocale.inc.php:12
CustomLocale\getLocalizedTitle
getLocalizedTitle()
Definition:
CustomLocale.inc.php:56
CustomLocale\setFilePath
setFilePath($filepath)
Definition:
CustomLocale.inc.php:72
CustomLocale\getLocale
getLocale()
Definition:
CustomLocale.inc.php:24
CustomLocale\getTitle
getTitle($locale)
Definition:
CustomLocale.inc.php:52
CustomLocale\setLocale
setLocale($locale)
Definition:
CustomLocale.inc.php:28
CustomLocale\setContextId
setContextId($contextId)
Definition:
CustomLocale.inc.php:36
CustomLocale\getPath
getPath()
Definition:
CustomLocale.inc.php:60
CustomLocale\setKey
setKey($key)
Definition:
CustomLocale.inc.php:20
CustomLocale\setTitle
setTitle($title, $locale)
Definition:
CustomLocale.inc.php:48
CustomLocale\getFileTitle
getFileTitle()
Definition:
CustomLocale.inc.php:44
CustomLocale\getKey
getKey()
Definition:
CustomLocale.inc.php:16
CustomLocale\getContextId
getContextId()
Definition:
CustomLocale.inc.php:32
DataObject\setData
setData($key, $value, $locale=null)
Definition:
DataObject.inc.php:132
plugins
generic
customLocale
classes
CustomLocale.inc.php
Generated on Fri Aug 28 2020 14:51:59 for Open Monograph Press by
1.8.17