public function Messaging_Template::build in Messaging 6.3
Same name and namespace in other branches
- 7 messaging_template/messaging_template.inc \Messaging_Template::build()
Build a new message for method, destination
Parameters
$method: Sending method
$language: Language object
Return value
Messaging_Message Message built for method, language
Overrides Messaging_Message_Template::build
File
- messaging_template/
messaging_template.inc, line 476 - Base classes for messaging templates
Class
- Messaging_Template
- Messaging Template class
Code
public function build($method = NULL, $language = NULL) {
$build = array(
'template' => $this,
'method' => $method,
'language' => $language ? $language : $this
->get_language('language'),
);
return new Messaging_Message($build);
}