Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

jifty::plugin::actormetadata::mixin::model::actormetadata(3pm) [debian man page]

Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadatUsermContributed Perl DocumeJifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata(3pm)

NAME
Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata - ActorMetadata mixin SYNOPSIS
package MyApp::Model::CoffeeShop; use Jifty::DBI::Schema; use MyApp::Record schema { # custom column definitions }; use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata; # created_by, created_on, updated_on and updated_by DESCRIPTION
SCHEMA
This mixin adds the following columns to the model schema: created_by created_on updated_on updated_by METHODS
# XXX: pod coverage should count parent classes. this pod is useless register_triggers Adds the triggers to the model this mixin is added to. register_triggers_for_column before_create Sets "created_by", "created_on", "updated_on" and "updated_by" based on the current user and time. after_set update "updated_on" and "updated_by" based on the current user and current time. current_user_can Rejects creation unless there's a current_user. current_user_is_owner import to be more flexible, we allow some configurations like: e.g. use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata user_class => 'Foo::Model::Principal', map => { created_by => 'creator', created_on => 'created' } current valid args are: user_class => 'Foo::Model::User' class that you want created_by and updated_by to be refers_to map => { created_by => 'creator', ... } the real column name you want to use. this also controls whether a column will be added or not. i.e. if the hashref is { created_by => 'creator', created_on => 'created' }, then columns 'updated_by' and 'updated_on' will not be added. perl v5.14.2 2011-02-08 Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata(3pm)

Check Out this Related Man Page

Jifty::Plugin::Authentication::Facebook(3pm)		User Contributed Perl Documentation	      Jifty::Plugin::Authentication::Facebook(3pm)

NAME
Jifty::Plugin::Authentication::Facebook - Facebook authentication plugin for Jifty DESCRIPTION Provides standalone Facebook authentication for your Jifty application. It adds the columns "facebook_name", "facebook_uid", "facebook_session", and "facebook_session_expires" to your User model. SYNOPSIS
In your jifty config.yml under the "framework" section: Plugins: - Authentication::Facebook: api_key: xxx secret: xxx You may set any options which the "new" method of WWW::Facebook::API understands. In your User model, you'll need to include the line use Jifty::Plugin::Authentication::Facebook::Mixin::Model::User; after your schema definition (which may be empty). You may also wish to include sub _brief_description { 'facebook_name' } To use the user's Facebook name as their description. See Jifty::Plugin::Authentication::Facebook::View for the provided templates and Jifty::Plugin::Authentication::Facebook::Dispatcher for the URLs handled. init api Generates a new WWW::Facebook::API for the current user get_login_url Gets the login URL, preserving continuations get_link_url Gets the login URL used for linking, preserving continuations AUTHOR
Alex Vandiver LICENSE
Copyright 2005-2009 Best Practical Solutions, LLC. This program is free software and may be modified and distributed under the same terms as Perl itself. perl v5.10.0 2009-06-09 Jifty::Plugin::Authentication::Facebook(3pm)
Man Page