gyro/core/lib/interfaces/itemplateengine.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * A template rendering class 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Interfaces 00007 */ 00008 interface ITemplateEngine { 00009 /** 00010 * Set a template variable 00011 * 00012 * @param string $name 00013 * @param mixed $value 00014 */ 00015 public function assign($name, $value); 00016 00017 /** 00018 * Assign array of template variables 00019 * 00020 * @param array $arr Associative array with name as key and value as value 00021 */ 00022 public function assign_array($arr); 00023 00024 /* 00025 * Returns value of template var 00026 * 00027 * @param string $name 00028 * @return mixed 00029 */ 00030 public function retrieve($name); 00031 00032 /** 00033 * Renders content 00034 * 00035 * @param string $file Tempalte file name 00036 * @return string Rendered content 00037 */ 00038 public function fetch($file); 00039 }