cvs: pear /Template Template.php

From: Date: Tue, 15 Jun 2004 01:43:42 +0000
Subject: cvs: pear /Template Template.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20671@lists.php.net to get a copy of this message
pmjones Mon Jun 14 21:43:42 2004 EDT Modified files: /pear/Template Template.php Log: fixed some minor typos http://cvs.php.net/diff.php/pear/Template/Template.php?r1=1.8&r2=1.9&ty=u Index: pear/Template/Template.php diff -u pear/Template/Template.php:1.8 pear/Template/Template.php:1.9 --- pear/Template/Template.php:1.8 Mon Jun 14 04:53:49 2004 +++ pear/Template/Template.php Mon Jun 14 21:43:41 2004 @@ -33,7 +33,7 @@ * See example usage and in-progress documentation at {@link * http://wiki.ciaweb.net/yawiki/index.php?area=Template} * -* $Id: Template.php,v 1.8 2004/06/14 08:53:49 alan_k Exp $ +* $Id: Template.php,v 1.9 2004/06/15 01:43:41 pmjones Exp $ * * @package Template * @@ -412,7 +412,7 @@ * * Lazy loading of PEAR, and the error handler.. * - * This should load Templae_Error really.. (where all the mapping of error stuff can go..) + * This should load Template_Error really.. (where all the mapping of error stuff can go..) * * @access public * @@ -455,9 +455,10 @@ function setData() { $this->assertProvider('Assign'); - return $this->provider['Assign']>setData(func_get_args()); + return $this->provider['Assign']->setData(func_get_args()); } - + + /** * * Assign Variables to the template by Reference @@ -473,13 +474,15 @@ * @see TEMPLATE_Assign::setDataByRef() */ - function setDataByRef($k,&$v) { + function setDataByRef($k, &$v) { // load assigner.. $this->assertProvider('Assign'); - return $this->provider['Assign']->setDataByRef($k,$v); + return $this->provider['Assign']->setDataByRef($k, $v); } - /** + + + /** * * reset __All__ the data.. * @@ -490,9 +493,11 @@ function clearData() { - $x = new Template; + $x = new Template; $this->data = $x->data; } + + /** * * Plugin (used by templates as $this->plugin(...) or {this.plugin(#...#,#....#)} @@ -506,14 +511,16 @@ * @see TEMPLATE_Plugin * @status alpha */ + function plugin() { // load pluginManager. $this->assertProvider('Plugin'); return $this->provider['Plugin']->call(func_get_args()); } - - /** + + + /** * Block API support * * An idea to support block regex/str_replace tempaltes @@ -540,8 +547,9 @@ $this->assertProvider('Block'); $args = func_get_args(); array_shift($args); - return $this->providers['Block']->$name($args); + return $this->provider['Block']->$name($args); } + /** * Assert that a provider is loaded, Load if it isnt..

« previous php.pear.cvs (#20671) next »