Query: jifty::plugin::chart::renderer
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Jifty::Plugin::Chart::Renderer(3pm) User Contributed Perl Documentation Jifty::Plugin::Chart::Renderer(3pm)NAMEJifty::Plugin::Chart::Renderer - Base class for chart rendering classesSYNOPSISIn your config.yml: Plugins: - Chart: DefaultRenderer: MyApp::Renderer In lib/MyApp/Renderer.pm: package MyApp::Renderer; use base qw/ Jifty::Plugin::Chart::Renderer /; sub init { my $self = shift; # Handle any required initialization, like required CSS, JS, etc. } sub render { my $self = shift; my %args = @_; # Output your chart Jifty->web->out( #{ Output your chart here... } ); # You could also return it as a string... return; }METHODSYour renderer implementation must subclass this package and implement the following methods: new This is the constructor. Don't override this directly. Instead implement "init". init $renderer->init(); This is called by "new" immediately after constructing the object. It is passed a param hash from the config file. Subclasses should implement this method to do any required initialization such as letting Jifty know about required CSS files, JS files, etc. render Jifty->web->out($renderer->render(%args)); See Jifty::Plugin::Chart::Web for the arguments. It must (at least) accept the arguments given to the "chart" in Jifty::Plugin::Chart::Web method. The "render" method may either return it's output or print it out using Jifty::Web::out.SEE ALSOJifty::Plugin::Chart::Web, Jifty::Plugin::Chart::Renderer::ChartAUTHORAndrew Sterling Hanenkamp "<andrew.hanenkamp@boomer.com>"COPYRIGHT AND LICENSECopyright 2007 Boomer Consulting, Inc. This is free software and may be modified and distributed under the same terms as Perl itself. perl v5.12.4 2009-03-09 Jifty::Plugin::Chart::Renderer(3pm)
Similar Topics in the Unix Linux Community |
---|
Flow Chart |
Daylight Chart 2.2 (Default branch) |
Echo2 Web Framework 2.1.0.rc4 (Default branch) |
phpCheckZ 1.0.1 (Default branch) |
Daylight Chart 2.6 (Default branch) |