Source for file Ethna_Renderer.php
Documentation is available at Ethna_Renderer.php
- // vim: foldmethod=marker 
-  *  @author     Kazuhiro Hosoi <hosoi@gree.co.jp> 
-  *  @license    http://www.opensource.org/licenses/bsd-license.php The BSD License 
-  *  @author     Kazuhiro Hosoi <hosoi@gree.co.jp> 
-     /** @var    object  Ethna_Controller    controllerオブジェクト */ 
-     /** @var    object  Ethna_Controller    controllerオブジェクト($controllerの省略形) */ 
-     /** @var    array   [appid]-ini.phpのレンダラ設定 */ 
-     /** @var    string  template directory  */ 
-     /** @var    string  template engine */ 
-     /** @var    string  template file */ 
-     /** @var    string  テンプレート変数 */ 
-     /** @var    string  レンダラプラグイン(Ethna_Pluginとは関係なし) */ 
-      *  Ethna_Rendererクラスのコンストラクタ 
-     function Ethna_Renderer(&$controller) 
-         $this->controller - = & $controller;
 
-         $this->ctl - = & $this->controller;
 
-         $this->template_dir - =  null;
 
-         $this->plugin_registry - =  array();
 
-         $this->config - =  $config->get('renderer');
 
-      *  @param string   $template   テンプレート 
-      *  @param  bool    $capture    true ならば出力を表示せずに返す 
-     function perform($template - =  null, $capture- =  false)
 
-         if ($template - ==  null- &&  $this->template- ==  null) {
 
-             $this->template - =  $template;
 
-         if (is_readable($this->template_dir - .  $this->template)- ===  false) {
 
-             include_once $this->template_dir - .  $this->template;
 
-             include_once $this->template_dir - .  $this->template;
 
-      *  @return object   Template Engine. 
-      *  @return string   Template Directory 
-     function getTemplateDir() 
-         return $this->template_dir; 
-      *  @param string $name  変数名 
-         if (- isset ($this->prop[$name])) {
 
-             return $this->prop[$name]; 
-     function &removeProp($name) 
-         if (- isset ($this->prop[$name])) {
 
-             unset ($this->prop[$name]);
-     function setPropArray($array) 
-     function setPropArrayByRef(&$array) 
-         for ($i - =  0; $i- <  $count; $i- ++ ) {
 
-             $this->prop[$keys[$i]] - = & $array[$keys[$i]];
 
-      * @param string $name 変数名 
-     function setProp($name, $value) 
-         $this->prop[$name] - =  $value;
 
-      *  @param string $name 変数名 
-     function setPropByRef($name, &$value) 
-         $this->prop[$name] - = & $value;
 
-      *  @param string $template テンプレート名 
-     function setTemplate($template) 
-         $this->template - =  $template;
 
-      *  @param string $dir ディレクトリ名 
-     function setTemplateDir($dir) 
-         $this->template_dir - =  $dir;
 
-         if (substr($this->template_dir, - - 1)- !=  '/') {
 
-             $this->template_dir - .=  '/';
 
-      *  @param string $template テンプレート名 
-     function templateExists($template) 
-         if (substr($this->template_dir, - - 1)- !=  '/') {
 
-             $this->template_dir - .=  '/';
 
-      *  @param string $name プラグイン名  
-      *  @param string $type プラグインタイプ 
-      *  @param string $plugin プラグイン本体 
-     function setPlugin($name, $type, $plugin) 
-         $this->plugin_registry[$type][$name] - =  $plugin;
 
-     // {{{ proxy methods (for B.C.) 
-     function assign($name, $value) 
-         $this->setProp($name, $value); 
-      *  テンプレート変数に参照を割り当てる(後方互換) 
-     function assign_by_ref($name, &$value) 
-         $this->setPropByRef($name, $value); 
-     function display($template - =  null)
 
 
	
		Documentation generated on Fri, 11 Nov 2011 04:00:47 +0900 by phpDocumentor 1.4.3