You are here

function Messaging_Template::render in Messaging 6.3

Same name and namespace in other branches
  1. 7 messaging_template/messaging_template.inc \Messaging_Template::render()

Render all template elements

Parameters

$method: Sending method to render for

$language: Language object

1 call to Messaging_Template::render()
Messaging_Template::get_content in messaging_template/messaging_template.inc
Get all text parts as array

File

messaging_template/messaging_template.inc, line 321
Base classes for messaging templates

Class

Messaging_Template
Messaging Template class

Code

function render($method, $language) {
  if (!isset($this->texts[$method][$language->language])) {
    $this->texts[$method][$language->language] = $this
      ->render_elements($this->elements, $method, $language, $this
      ->get_objects());
  }
  return $this->texts;
}