Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
I18n
MessageTemplate.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\I18n
;
4
20
abstract
class
MessageTemplate
{
21
23
protected
$template
;
24
30
public
function
__construct
(
$template
) {
31
$this->
template
=
$template
;
32
}
33
41
abstract
public
function
format
(array
$args
);
42
48
public
function
__toString
() {
49
return
$this->template
;
50
}
51
}
Elgg\I18n\MessageTemplate\__toString
__toString()
Get the string template this message uses for translation.
Definition:
MessageTemplate.php:48
Elgg\I18n\MessageTemplate\format
format(array $args)
Applies the inputs to the message template and returns the result.
$args
$args
Some servers don't allow PHP to check the rewrite, so try via AJAX.
Definition:
js_rewrite_check.php:8
Elgg\I18n\MessageTemplate\__construct
__construct($template)
Constructor.
Definition:
MessageTemplate.php:30
Elgg\I18n\MessageTemplate
WARNING: API IN FLUX.
Definition:
MessageTemplate.php:20
Elgg\I18n
Definition:
ArrayMessageBundle.php:3
Elgg\I18n\MessageTemplate\$template
$template
Definition:
MessageTemplate.php:23
Generated on Thu Jan 28 2021 00:00:19 for Elgg by
1.8.11