Meta::Projects::Fortune::Fortune - provide fortune services.


Meta documentation  | view source Contained in the Meta distribution.

Index


NAME

Top

Meta::Projects::Fortune::Fortune - provide fortune services.

COPYRIGHT

Top

LICENSE

Top

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

Top

	MANIFEST: Fortune.pm
	PROJECT: meta
	VERSION: 0.02

SYNOPSIS

Top

	package foo;
	use Meta::Projects::Fortune::Fortune qw();
	my($fortune)=Meta::Projects::Fortune::Fortune->new([connection data]);
	my($random_fortune)=$fortune->random();

DESCRIPTION

Top

This class provides fortune services. Examples are providing you with a random fortune saying, providing you with a fortune saying under a specific category etc...

FUNCTIONS

Top

	new($$$$)
	random($)
	random_cat($$)
	TEST($)

FUNCTION DOCUMENTATION

Top

new($$$$)

This is a constructor for the Meta::Projects::Fortune::Fortune object. Data to make a connection need to be supplied.

random($)

Provide a random fortune saying.

random_cat($$)

Provide you with a random fortune saying out of a specific category.

TEST($)

This is a testing suite for the Meta::Projects::Fortune::Fortune module. This test is should be run by a higher level management system at integration or release time or just as a regular routine to check that all is well.

SUPER CLASSES

Top

None.

BUGS

Top

None.

AUTHOR

Top

	Name: Mark Veltzer
	Email: mailto:veltzer@cpan.org
	WWW: http://www.veltzer.org
	CPAN id: VELTZER

HISTORY

Top

	0.00 MV finish papers
	0.01 MV teachers project
	0.02 MV md5 issues

SEE ALSO

Top

Meta::Db::Connections(3), Meta::Db::Dbi(3), Meta::Development::Module(3), strict(3)

TODO

Top

-prepare the statements in the constructor.

-start using Class::DBI instead of doing SQL stuff here.


Meta documentation  | view source Contained in the Meta distribution.