Create a toString method for BSTemplate that will evaluate it 3.2.2
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 15 Jan 2009 16:08:54 +0000 (11:08 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 15 Jan 2009 16:10:46 +0000 (11:10 -0500)
* Template.php:
(BSTemplate::__toString): Implemented to call evaluate()->getTemplate()
* version.php: Bumping the version number

CHANGES
Template.php
version.php

diff --git a/CHANGES b/CHANGES
index cc55eb426c8a7729633b11b7f34f1de15c766cb9..b413b8d9c27fcd6a0146bc89e3ce9b911772945a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+3.2.2
+===================
+- New: Added BSTemplate::__toString() to evaluate the template
+
 3.2.1
 ===================
 - New: BSFunctions::bool_to_string() to convert a boolean value into human-readable Yes/No
index aeb8a72b1b96ab0ddfd3aa8efd9d4a45a1723575..dfe30c12ae088949b8201e41d30c9c52b1d0d790 100644 (file)
@@ -178,6 +178,17 @@ class BSTemplate
                }
        }
        
+       /**
+        * Evaluates and returns the template. This is equivalent to calling:
+        * $tpl->evaluate()->getTemplate()
+        *
+        * @return      string
+        */
+       public function __toString()
+       {
+               return $this->evaluate()->getTemplate();
+       }
+       
        /**
         * Returns the template data
         *
index e43dfb410f4595ca443518d94470c867de5c8fac..83043fef536f5592dfd822c4c9f2e2c2ef8d6740 100644 (file)
@@ -22,6 +22,6 @@
 /**
  * ISSO version
  */
-define('ISSO_VERSION', '3.2.1');
+define('ISSO_VERSION', '3.2.2');
 
 ?>
\ No newline at end of file