Home | Wiki | OI 1.x Docs | OI 2.x Docs |
OpenInteract2::Manage::Website::ListActions - List all actions in a website
#!/usr/bin/perl use strict; use OpenInteract2::Manage; my $website_dir = '/home/httpd/mysite'; my $task = OpenInteract2::Manage->new( 'list_actions', { website_dir => $website_dir } ); my @status = $task->execute; foreach my $s ( @status ) { print "Action [[$s->{name}]]\n", "Type: $s->{type}\n", "Class: $s->{class}\n", "Method: $s->{method}\n", "Template: $s->{template}\n"; }
This task lists available actions in a website.
In addition to the default entries, each status message includes:
Name of the action
Arrayref of all URLs this action mapped to.
Type of action (template, class, box, directory_handler)
Class used for action
Method used for action
Template used for action
Copyright (c) 2002-2003 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
Generated from the OpenInteract 1.99_03 source.