[dev] custom form renderer functions
Jason M. Felice
jfelice at cronosys.com
Wed Dec 10 05:40:04 PST 2003
On Wed, Dec 10, 2003 at 11:36:07AM +0100, Marko Djukic wrote:
> slight problem with the new UI/VarRenderer.php and custom rendering functions.
>
> ie: if an app has it's own implementation of a specific variable how it is
> rendered, before all the rendering functions were in Form/Renderer.php, so if
> you wanted to add your own rendering types, you just extended Renderer.php and
> set up the renderer object with &new MyRenderer(). now it's Renderer.php which
> by default calls UI/VarRenderer.php to get the rendering functions.
> so creating a custom class that extends Form/Renderer.php (like before) doesn't
> work now because it doesn't even look inside this class for the functions.
> extending UI/VarRenderer.php doesn't work either because by default it picks up
> the one in framework.
>
> how about having a param that the factory method accepts to specify the extended
> UI/VarRenderer object to use?
>
> m.
Check out what I just committed. It also allows you to specify which
Horde_UI_VarRenderer:: driver the standard Horde_Form_Renderer:: will
use.
--
Jason M. Felice
Cronosys, LLC <http://www.cronosys.com/>
216.221.4600 x302
More information about the dev
mailing list