Changeset 483 for trunk/DNSDB.pm


Ignore:
Timestamp:
03/14/13 17:05:52 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Object conversion of DNSDB.pm, part 15. See #11.

  • log-retrieval subs getLogCount() and getLogEntries(), miscellaneous retrieval subs getRevPattern() and getTypelist(), and mailNotify()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r481 r483  
    39983998# - Entity ID and entity type as the primary log "slice"
    39993999sub getLogCount {
    4000   my $dbh = shift;
     4000  my $self = shift;
     4001  my $dbh = $self->{dbh};
    40014002
    40024003  my %args = @_;
     
    40344035# - offset for pagination
    40354036sub getLogEntries {
    4036   my $dbh = shift;
     4037  my $self = shift;
     4038  my $dbh = $self->{dbh};
    40374039
    40384040  my %args = @_;
     
    40734075# Get the narrowest template pattern applicable to a passed CIDR address (may be a netblock or an IP)
    40744076sub getRevPattern {
    4075   my $dbh = shift;
     4077  my $self = shift;
     4078  my $dbh = $self->{dbh};
    40764079  my $cidr = shift;
    40774080  my $group = shift || 1;       # just in case
     
    40944097# Returns an arrayref to list of hashrefs perfect for HTML::Template
    40954098sub getTypelist {
    4096   my $dbh = shift;
     4099  my $self = shift;
     4100  my $dbh = $self->{dbh};
    40974101  my $recgroup = shift;
    40984102  my $type = shift || $reverse_typemap{A};
     
    53015305# Sends notification mail to recipients regarding a DNSDB operation
    53025306sub mailNotify {
    5303   my $dbh = shift;
     5307  my $self = shift;
     5308  my $dbh = $self->{dbh};
    53045309  my ($subj,$message) = @_;
    53055310
Note: See TracChangeset for help on using the changeset viewer.