Query: ropkg::simba::commands
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RoPkg::Simba::Commands(3pm) User Contributed Perl Documentation RoPkg::Simba::Commands(3pm)NAMERoPkg::Simba::CommandsVERSION0.2.2DESCRIPTIONRoPkg::Simba::Commands is a class used to count and get the commands from the database.SYNOPSIS!#/usr/bin/perl use RoPkg::DB; use RoPkg::Simba::Commands; sub main { my $dbp = new RoPkg::DB(); $dbp->Add('dbi:mysql:database=mysql;host=localhost', 'root', '', 'local'); my $m = new RoPkg::Simba::Commands(dbo => $dbp, dbo_method => 'db_local'); print $m->Count,' commands found in database',$/; } main();SUBROUTINES/METHODS new() The class constructor. At this moment, it just calls RoPkg::DBObject->new() . Please read the RoPkg::DBObject manual page for more information about the new() parameters. Count($fields) Returns the number of commands from database. The $fields parameter contains a list of WHERE clauses. For more details of $fields see SQL::Abstract. Get($fields, $orderby) Returns a array of RoPkg::Simba::Command objects. The commands are read from the database. The $fields parameter contains a list of WHERE clauses. For more details of $fields see SQL::Abstract. $orderby is a reference to a array holding the fields specification used for sorting the data.DIAGNOSTICSUnpack the source and use 'make test' commandCONFIGURATION AND ENVIRONMENTThis module does not use any configuration files or environment variables.DEPENDENCIESRoPkg::DBCollection and RoPkg::ExceptionsINCOMPATIBILITIESNone known to the authorBUGS AND LIMITATIONSNone know to the authorPERL CRITICThe code is perl critic level 2 compliantSEE ALSORoPkg::Simba RoPkg::Simba::Command SQL::AbstractAUTHORSubredu Manuel <diablo@iasi.roedu.net>LICENSE AND COPYRIGHTCopyright (C) 2005 Subredu Manuel. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license. perl v5.14.2 2006-07-04 RoPkg::Simba::Commands(3pm)