The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Osgood::Server::Controller::Event - Catalyst Controller

DESCRIPTION

Catalyst Controller.

METHODS

list

Takes one or more query parameters and returns a list of events. Parameters can be:

"action"

looks for all events with this action

"date_after"

looks for all events with date greater than this date

"date_before"

looks for all events with a date less than this date

"id"

looks for all events with id greater than this number

"limit"

limits the number of events returns to the specified number

"object"

looks for all events with this object

If fields are invalid, an error is returned. If no matching events are found, an emtpy list is returned.

show

Takes an id and returns an event list containing the matching event.

add

Takes an xml event list. Inserts each event into the database, and returns the number of events inserted as a confirmation. Rolls back all changes and returns zero if any insert failed.

add

Returns confirmation of controller.

AUTHOR

Lauren O'Meara

COPYRIGHT AND LICENSE

Copyright 2008 by Magazines.com, LLC

You can redistribute and/or modify this code under the same terms as Perl itself.