[limb-svn] r6278 - 3.x/trunk/limb/view/src
svn at limb-project.com
svn at limb-project.com
Sun Sep 9 14:06:56 MSD 2007
Author: korchasa
Date: 2007-09-09 14:06:56 +0400 (Sun, 09 Sep 2007)
New Revision: 6278
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6278
Modified:
3.x/trunk/limb/view/src/lmbBlitzView.class.php
Log:
coding standard
Modified: 3.x/trunk/limb/view/src/lmbBlitzView.class.php
===================================================================
--- 3.x/trunk/limb/view/src/lmbBlitzView.class.php 2007-09-08 16:44:56 UTC (rev 6277)
+++ 3.x/trunk/limb/view/src/lmbBlitzView.class.php 2007-09-09 10:06:56 UTC (rev 6278)
@@ -9,7 +9,8 @@
function __call($methodName, $params)
{
$tpl = $this->getTemplateInstance();
- if(!method_exists($tpl, $methodName)) {
+ if(!method_exists($tpl, $methodName))
+ {
throw new lmbException(
'Wrong template method called',
array(
@@ -23,8 +24,10 @@
function getTemplateInstance()
{
- if(!$this->templateInstance) {
- if(!$this->hasTemplate()) {
+ if(!$this->templateInstance)
+ {
+ if(!$this->hasTemplate())
+ {
throw new lmbException('template not defined');
}
$this->templateInstance = new Blitz($this->getTemplate());
@@ -34,7 +37,8 @@
function render()
{
- foreach ($this->getVariables() as $name => $value) {
+ foreach ($this->getVariables() as $name => $value)
+ {
$this->getTemplateInstance()->set(array($name => $value));
}
return $this->getTemplateInstance()->parse();
More information about the limb-svn
mailing list