Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

Jifty::Plugin::Comment::Dispatcher(3pm) 		User Contributed Perl Documentation		   Jifty::Plugin::Comment::Dispatcher(3pm)

NAME
Jifty::Plugin::Comment::Dispatcher - dispatcher for the comment plugin DESCRIPTION
Handles the dispatch of the "__comment" paths used by this plugin. METHODS
setup_parent_object Called internally by the dispatcher rules to create the "parent" dispatcher argument from "comment_upon" or "parent_class" and "parent_id". RULES
__comment/list Sets up the "parent" argument for the list template. __comment/add Set up the "parent" argument for the add template and set the "CreateComment" action into the "action" argument. __comment/display Sets up the "comment" argument and will update the status and published values of the comment if "update_status" or "update_published" are set, respectively. SEE ALSO
Jifty::Dispatcher AUTHOR
Andrew Sterling Hanenkamp, "<hanenkamp@cpan.org>" COPYRIGHT AND LICENSE
Copyright 2008 Boomer Consulting, Inc. All Rights Reserved. This program 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::Comment::Dispatcher(3pm)

Check Out this Related Man Page

Jifty::Plugin::Comment::Notification::CommentNeedsModeraUser(Contributed Perl DocJifty::Plugin::Comment::Notification::CommentNeedsModeration(3pm)

NAME
Jifty::Plugin::Comment::Notification::CommentNeedsModeration - new comments made, but not published SYNOPSIS
To activate this notification, you must override the notification in your application. use strict; use warnings; package MyApp::Notification::CommentNeedsModeration; use base qw/ Jifty::Plugin::Comment::Notification::CommentNeedsModeration /; sub setup { my $self = shift; # Limit to users that have a "moderator" column set to 1 my $users = MyApp::Model::UserCollection->new; $users->limit( column => 'moderator', value => 1 ); $self->to_list(@{ $users->items_array_ref }); $self->SUPER::setup(@_); } sub url { my $self = shift; return Jifty->config->framework('Web')->{'BaseURL'} . $self->parent->permalink . '#comment-'.$self->comment->id; } 1; DESCRIPTION
This notificaiton (when properly configured) is sent out to any who need to know when a comment has been created, but not published because Net::Akismet has marked it as spam. METHODS
setup This method sets up the notification. This method should be overridden to setup "to_list" in Jifty::Notification to select who will receive this message. See the "SYNOPSIS". comment This will contain the Jifty::Plugin::Comment::Model::Comment that has been published. parent This will contain the object that the comment has been attached to. url THis returns the URL that the message will link to. This should be overridden to provide application-specific URLs. The default implementation returns the BaseURL setting for the application. SEE ALSO
Jifty::Notification, Jifty::Plugin::Comment::Notification::CommentPublished AUTHOR
Andrew Sterling Hanenkamp, "<hanenkamp@cpan.org>" COPYRIGHT AND LICENSE
Copyright 2008 Boomer Consulting, Inc. All Rights Reserved. This program 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::Comment::Notification::CommentNeedsModeration(3pm)
Man Page