Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
MessagesDomain.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\translation
;
4
5
use
Ubiquity\translation\loader\LoaderInterface
;
6
16
class
MessagesDomain
{
17
protected
$messages
;
18
protected
$loader
;
19
protected
$locale
;
20
protected
$domain
;
21
22
public
function
__construct
(
$locale
=
null
,
LoaderInterface
$loader
=
null
,
$domain
=
null
) {
23
$this->locale =
$locale
;
24
$this->loader =
$loader
;
25
$this->domain =
$domain
;
26
}
27
32
public
function
getMessages
() {
33
return
$this->messages
;
34
}
35
40
public
function
getLoader
() {
41
return
$this->loader
;
42
}
43
48
public
function
getLocale
() {
49
return
$this->locale
;
50
}
51
56
public
function
setMessages
(
$messages
) {
57
$this->messages =
$messages
;
58
}
59
64
public
function
setLoader
(
$loader
) {
65
$this->loader =
$loader
;
66
}
67
72
public
function
setLocale
(
$locale
) {
73
$this->locale =
$locale
;
74
}
75
76
public
function
store
() {
77
$this->loader->save ( $this->messages, $this->locale, $this->domain );
78
}
79
80
public
function
load
() {
81
$this->messages = $this->loader->loadDomain ( $this->locale, $this->domain );
82
}
86
public
function
getDomain
() {
87
return
$this->domain
;
88
}
89
90
}
91
Ubiquity\translation\MessagesDomain
Represents a list of messages in a domain for a locale.
Definition
MessagesDomain.php:16
Ubiquity\translation\MessagesDomain\setLocale
setLocale($locale)
Definition
MessagesDomain.php:72
Ubiquity\translation\MessagesDomain\$messages
$messages
Definition
MessagesDomain.php:17
Ubiquity\translation\MessagesDomain\$locale
$locale
Definition
MessagesDomain.php:19
Ubiquity\translation\MessagesDomain\getLoader
getLoader()
Definition
MessagesDomain.php:40
Ubiquity\translation\MessagesDomain\getDomain
getDomain()
Definition
MessagesDomain.php:86
Ubiquity\translation\MessagesDomain\load
load()
Definition
MessagesDomain.php:80
Ubiquity\translation\MessagesDomain\getMessages
getMessages()
Definition
MessagesDomain.php:32
Ubiquity\translation\MessagesDomain\__construct
__construct($locale=null, LoaderInterface $loader=null, $domain=null)
Definition
MessagesDomain.php:22
Ubiquity\translation\MessagesDomain\store
store()
Definition
MessagesDomain.php:76
Ubiquity\translation\MessagesDomain\$loader
$loader
Definition
MessagesDomain.php:18
Ubiquity\translation\MessagesDomain\getLocale
getLocale()
Definition
MessagesDomain.php:48
Ubiquity\translation\MessagesDomain\setMessages
setMessages($messages)
Definition
MessagesDomain.php:56
Ubiquity\translation\MessagesDomain\$domain
$domain
Definition
MessagesDomain.php:20
Ubiquity\translation\MessagesDomain\setLoader
setLoader($loader)
Definition
MessagesDomain.php:64
Ubiquity\translation\loader\LoaderInterface
Translations loader interface.
Definition
LoaderInterface.php:14
Ubiquity\translation
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity
src
Ubiquity
translation
MessagesDomain.php
Generated on Sun Dec 10 2023 15:04:25 for
Ubiquity
by
doxygen
1.9.8