Changeset 6005
- Timestamp:
- 02/05/12 16:39:25 (4 months ago)
- Location:
- trunk/core
- Files:
-
- 3 edited
-
modulecontroller.core.php (modified) (4 diffs)
-
renderer/renderer.base.php (modified) (6 diffs)
-
renderer/templatemapper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/modulecontroller.core.php
r6002 r6005 302 302 * Get view returns the render engine 303 303 * 304 * @param string $renderEngineName Setsthe render engine, like smarty, phptal.304 * @param string $renderEngineName Name of the render engine, like smarty, phptal. 305 305 * @return Returns the View Object (Rendering Engine) 306 306 */ … … 314 314 315 315 # if already set, get the rendering engine from the view variable 316 if (isset($this->view) === true)316 if(isset($this->view) === true) 317 317 { 318 318 return $this->view; … … 411 411 public function display($templates = null) 412 412 { 413 $view_mapper = new Clansuite_View_Mapper; 413 # get the view 414 $this->view = $this->getView(); 415 416 # get the view mapper 417 $view_mapper = $this->view->getViewMapper(); 414 418 415 419 # set layout and content template by parameter array … … 432 436 # get the templatename 433 437 $template = $view_mapper->getTemplateName(); 434 435 # get the view436 $this->view = $this->getView();437 438 438 439 # Debug display of Layout Template and Content Template -
trunk/core/renderer/renderer.base.php
r6003 r6005 53 53 54 54 /** 55 * @var Object Holds instance of the Theme Object55 * @var object Holds instance of the Theme Object 56 56 */ 57 57 public $theme = null; … … 63 63 64 64 /** 65 * @var string The "content" template66 */67 public $template = null;68 69 /**70 65 * @var string Variable for the RenderMode (available: WRAPPED) 71 66 */ … … 83 78 84 79 /** 80 * @var object Clansuite_View_Mapper 81 */ 82 public $view_mapper = null; 83 84 /** 85 85 * Construct Renderer 86 86 * … … 89 89 public function __construct(Clansuite_Config $config) 90 90 { 91 $this->config = $config; 91 $this->config = $config; 92 $this->view_mapper = new Clansuite_View_Mapper(); 92 93 } 93 94 … … 164 165 abstract public function clearCache(); 165 166 166 /** 167 * Set the template name 167 public function getViewMapper() 168 { 169 return $this->view_mapper; 170 } 171 172 public function setViewMapper(Clansuite_View_Mapper $view_mapper) 173 { 174 $this->view_mapper = $view_mapper; 175 } 176 177 /** 178 * Set the template name. 179 * 180 * Proxies to Clansuite_View_Mapper::setTemplate() 168 181 * 169 182 * @param string $template Name of the Template (full path) … … 171 184 public function setTemplate($template) 172 185 { 173 $this-> template = $template;186 $this->getViewMapper()->setTemplate($template); 174 187 } 175 188 176 189 /** 177 190 * Get the template name 191 * 192 * Proxies to Clansuite_View_Mapper::getTemplate() 193 * 194 * @return string $template Name of the Template (full path) 178 195 */ 179 196 public function getTemplate() 180 197 { 181 return $this-> template;198 return $this->getViewMapper()->getTemplate(); 182 199 } 183 200 -
trunk/core/renderer/templatemapper.php
r6002 r6005 109 109 110 110 /** 111 * Get the template name 112 * 113 * Proxies to Clansuite_View_Mapper::getTemplate() 114 * 115 * @return string $template Name of the Template (full path) 116 */ 117 public function getTemplate() 118 { 119 return $this->template; 120 } 121 122 /** 111 123 * Returns the Template Path 112 124 *
Note: See TracChangeset
for help on using the changeset viewer.
