Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

jifty::plugin::chart(3pm) [debian man page]

Jifty::Plugin::Chart(3pm)				User Contributed Perl Documentation				 Jifty::Plugin::Chart(3pm)

NAME
Jifty::Plugin::Chart - A charting API for Jifty SYNOPSIS
In your config.yml: Plugins: - Chart: {} In your Mason templates: <% Jifty->web->chart( type => 'Bar', width => 400, height => 300, data => [ [ '2004', '2005', '2006', '2007' ], # labels [ 14, 15, 17, 22 ], # first data set [ 22, 25, 20, 21 ], # second data set ], ) %> DESCRIPTION
CAUTION: This plugin is experimental. The API will change. This plugin provides a charting API that can be used by Jifty applications to build data visualizations without regard to the underlying rendering mechanism. As of this writing, the API is a barely veiled interface over Chart. However, I intend to expand the interface to apply to something like Maani's XML/SWF Charts or Imprise Javascript charts or even something like OpenLaszlo (or something Open Source and Perl if I can find or build such a thing in time). INTERFACE
By adding this method to the plugin configuration for your Jifty application, you will cause Jifty::Web to inherit a new method, "chart", which is the cornerstone of this API. This method is described in Jifty::Plugin::Chart::Web and an example is shown in the "SYNOPSIS" above. CONFIGURATION
Here is an example configuration for config.yml: Plugins: - Chart: DefaultRenderer: PlotKit PreloadRenderers: - XMLSWF - SimpleBars - App::Renderer::Custom The available options are: DefaultRenderer This is the name of the class to use as the default renderer. Jifty::Plugin::Chart::Renderer::Chart is the current default, but that could change in the future. It's recommended that you set this to your preference. PreloadRenderers This is a list of other render classes to load during initialization. If they are not loaded during initialization some renderers may not work correctly the first time they are run because they are not able to inform Jifty of the CSS or JS files they need before that part of the page is already rendered. If you use the "renderer" option of "chart" in Jifty::Plugin::Chart::Web, then you should make sure any value you use is set here in the configuration to make sure it works properly. METHODS
init Adds the "chart" in Jifty::Plugin::Chart::Web method to Jifty::Web. init_renderer my $renderer = $chart_plugin->init_renderer($renderer_class) This is a helper method that is used by the API to initialize the renderer class. This is handled automatically so you probably shouldn't use this. SEE ALSO
Jifty::Plugin, Jifty::Web, Jifty::Plugin::Chart::Renderer, Jifty::Plugin::Chart::Renderer::Chart, Jifty::Plugin::Chart::View AUTHOR
Andrew Sterling Hanenkamp "<andrew.hanenkamp@boomer.com>" COPYRIGHT AND LICENSE
Copyright 2007 Boomer Consulting, Inc. This is free software and may be modified and redistributed under the same terms as Perl itself. perl v5.12.4 2009-07-15 Jifty::Plugin::Chart(3pm)

Check Out this Related Man Page

Jifty::Plugin::AuthzLDAP(3pm)				User Contributed Perl Documentation			     Jifty::Plugin::AuthzLDAP(3pm)

NAME
Jifty::Plugin::AuthzLDAP - Jifty plugin to a add dynamic ldap authorization DESCRIPTION
Jifty plugin. Provide ldap authorization with filters table and cache. CONFIGURATION NOTES
in etc/config.yml Plugins: - AuthzLDAP: LDAPbind: cn=testldap,ou=admins,dc=myorg,dc=org # LDAPpass: test # password LDAPhost: ldap.myorg.org # ldap host LDAPbase: ou=people,dc=myorg.. # ldap base LDAPuid: uid # optional CacheTimout: 20 # minutes, optional, default 20 minutes in application create a LDAPFilter model use base qw/Jifty::Plugin::AuthzLDAP::Model::LDAPFilter/; in LDAPFilter model create your filters, something like name |filter |is_group is_admin|(!eduPersonAffiliation=STUDENT)|0 in_admin|cn=admin,ou=groups,dc=my.org |1 to protect access to /admin in "TestApp" application create a lib/TestApp/Dispatcher.pm use strict; use warnings; package TestApp::Dispatcher; use Jifty::Dispatcher -base; before '/admin/*' => run { # Authentication Jifty->web->tangent(url => '/login') if (! Jifty->web->current_user->id); # Authorization my $user = Jifty->web->current_user->user_object->name; Jifty->web->tangent(url => '/error/AccessDenied') if (! Jifty::Plugin::AuthzLDAP->ldapvalidate($user,'is_admin') ); }; 1 SEE ALSO
Net::LDAP METHODS
init load config parameters, connect to ldap, create memory cache BASE CACHE DN LDAP BASE UID PASS LDAPFilterClass accesors to conf parametres bind Bind to ldap ldapvalidate NAME FILTERNAME return 1 if NAME validate FILTER or NAME-FILTERNAME in cache else return 0 If FILTERNAME is flagged as is_group, search if user is uniquemember of this group as supported by the Netscape Directory Server AUTHOR
Yves Agostini, <yvesago@cpan.org> LICENSE
Copyright 2007-2009 Yves Agostini. All Rights Reserved. This program is free software and may be modified and distributed under the same terms as Perl itself. perl v5.10.0 2009-05-15 Jifty::Plugin::AuthzLDAP(3pm)
Man Page