self::$_template->assign($var, $value);
}
+ /**
+ * assign value to name in template by reference
+ *
+ * @param array|string $name name of variable
+ * @param mixed $value (reference) value of varaible
+ *
+ * @return void
+ * @access public
+ */
function assign_by_ref($var, &$value) {
self::$_template->assign_by_ref($var, $value);
}
+ /**
+ * appends values to template variables
+ *
+ * @param array|string $tpl_var the template variable name(s)
+ * @param mixed $value the value to append
+ * @param bool $merge
+ */
+ function append($tpl_var, $value=NULL, $merge=FALSE) {
+ self::$_template->append($tpl_var, $value, $merge);
+ }
+
+ /**
+ * Returns an array containing template variables
+ *
+ * @param string $name
+ * @param string $type
+ * @return array
+ */
+ function get_template_vars($name=null) {
+ return self::$_template->get_template_vars($name);
+ }
+
/**
* setter for embedded
*
self::$_template->assign_by_ref($var, $value);
}
+ /**
+ * appends values to template variables
+ *
+ * @param array|string $tpl_var the template variable name(s)
+ * @param mixed $value the value to append
+ * @param bool $merge
+ */
+ function append($tpl_var, $value=NULL, $merge=FALSE) {
+ self::$_template->append($tpl_var, $value, $merge);
+ }
+
+ /**
+ * Returns an array containing template variables
+ *
+ * @param string $name
+ * @param string $type
+ * @return array
+ */
+ function get_template_vars($name=null) {
+ return self::$_template->get_template_vars($name);
+ }
+
function &addRadio($name, $title, &$values, $attributes = NULL, $separator = NULL, $required = FALSE) {
$options = array();
if (empty($attributes)) {
self::$_template->assign_by_ref($var, $value);
}
+ /**
+ * appends values to template variables
+ *
+ * @param array|string $tpl_var the template variable name(s)
+ * @param mixed $value the value to append
+ * @param bool $merge
+ */
+ function append($tpl_var, $value=NULL, $merge=FALSE) {
+ self::$_template->append($tpl_var, $value, $merge);
+ }
+
+ /**
+ * Returns an array containing template variables
+ *
+ * @param string $name
+ * @param string $type
+ * @return array
+ */
+ function get_template_vars($name=null) {
+ return self::$_template->get_template_vars($name);
+ }
+
/**
* function to destroy all the session state of this page.
*