Rechercher une page de manuel
RoPkg::Simba::Mirrors.3pm
Langue: en
Version: 2006-07-04 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
RoPkg::Simba::MirrorsVERSION
0.2.2DESCRIPTION
RoPkg::Simba::Mirrors is a class used to count and get the mirrors from the database.SYNOPSIS
!#/usr/bin/perl use RoPkg::DB; use RoPkg::Simba::Mirrors; sub main { my $dbp = new RoPkg::DB(); $dbp->Add('dbi:mysql:database=mysql;host=localhost', 'root', '', 'local'); my $m = new RoPkg::Simba::Mirrors(dbo => $dbp, dbo_method => 'db_local'); print $m->Count,' mirrors 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 mirrors 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::Mirror objects. The mirrors 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.DIAGNOSTICS
Unpack the source, and use 'make test' commandCONFIGURATION AND ENVIRONMENT
This module does not use any configuration files or environment variables.DEPENDENCIES
RoPkg::DBCollection and RoPkg::ExcludesINCOMPATIBILITIES
None known to the authorBUGS AND LIMITATIONS
None known to the authorPERL CRITIC
This module is perl critic level 2 compliantSEE ALSO
RoPkg::Simba RoPkg::Simba::Mirror SQL::AbstractAUTHOR
Subredu Manuel <diablo@iasi.roedu.net>LICENSE AND COPYRIGHT
Copyright (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.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre