[limb-svn] r5927 - in 3.x/trunk/limb/view: src tests/cases
svn at limb-project.com
svn at limb-project.com
Fri Jun 1 11:49:20 MSD 2007
Author: pachanga
Date: 2007-06-01 11:49:20 +0400 (Fri, 01 Jun 2007)
New Revision: 5927
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5927
Modified:
3.x/trunk/limb/view/src/lmbWactView.class.php
3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php
Log:
-- lmbWactView :: __construct() now accepts template path not cache dir, cache dir should be passed via setCacheDir()
Modified: 3.x/trunk/limb/view/src/lmbWactView.class.php
===================================================================
--- 3.x/trunk/limb/view/src/lmbWactView.class.php 2007-06-01 07:49:04 UTC (rev 5926)
+++ 3.x/trunk/limb/view/src/lmbWactView.class.php 2007-06-01 07:49:20 UTC (rev 5927)
@@ -19,11 +19,6 @@
protected $forms_errors = array();
protected $cache_dir;
- function __construct($dir)
- {
- $this->cache_dir = $dir;
- }
-
function setCacheDir($dir)
{
$this->cache_dir = $dir;
Modified: 3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php
===================================================================
--- 3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php 2007-06-01 07:49:04 UTC (rev 5926)
+++ 3.x/trunk/limb/view/tests/cases/lmbWactViewTest.class.php 2007-06-01 07:49:20 UTC (rev 5927)
@@ -25,8 +25,8 @@
$this->registerTestingTemplate($path = '/limb/simple_view.html', $template);
- $view = new lmbWactView(LIMB_VAR_DIR . '/compiled');
- $view->setTemplate($path);
+ $view = new lmbWactView($path);
+ $view->setCacheDir(LIMB_VAR_DIR . '/compiled');
$view->set('hello', 'Hello message!');
$view->set('again', 'Hello again!');
@@ -43,8 +43,8 @@
$this->registerTestingTemplate($path = '/limb/form_view.html', $template);
- $view = new lmbWactView(LIMB_VAR_DIR . '/compiled');
- $view->setTemplate($path);
+ $view = new lmbWactView($path);
+ $view->setCacheDir(LIMB_VAR_DIR . '/compiled');
$view->set('hello', 'Hello world!');
$error_list = new lmbErrorList();
More information about the limb-svn
mailing list