Changeset 466


Ignore:
Timestamp:
03/12/13 12:06:28 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Object conversion of DNSDB.pm, 2 of <mumble>. See #11.

  • general internal utility subs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r465 r466  
    271271## DNSDB::_ipparent()
    272272# Check an IP to be added in a reverse zone to see if it's really in the requested parent.
    273 # Takes a database handle, default and reverse flags, IP (fragment) to check, parent zone ID,
     273# Takes default and reverse flags, IP (fragment) to check, parent zone ID,
    274274# and a reference to a NetAddr::IP object (also used to pass back a fully-reconstructed IP for
    275275# database insertion)
    276276sub _ipparent {
    277   my $dbh = shift;
     277  my $self = shift;
     278  my $dbh = $self->{dbh};
    278279  my $defrec = shift;
    279280  my $revrec = shift;
     
    336337## DNSDB::_hostparent()
    337338# A little different than _ipparent above;  this tries to *find* the parent zone of a hostname
    338 # Takes a database handle and hostname.
     339# Takes a hostname.
    339340# Returns the domain ID of the parent domain if one was found.
    340341sub _hostparent {
    341   my $dbh = shift;
     342  my $self = shift;
     343  my $dbh = $self->{dbh};
    342344  my $hname = shift;
    343345
     
    357359## DNSDB::_log()
    358360# Log an action
    359 # Takes a database handle and log entry hash containing at least:
     361# Takes a log entry hash containing at least:
    360362#  group_id, log entry
    361363# and optionally one or more of:
     
    363365# The %userdata hash provides the user ID, username, and fullname
    364366sub _log {
    365   my $dbh = shift;
     367  my $self = shift;
     368  my $dbh = $self->{dbh};
    366369
    367370  my %args = @_;
Note: See TracChangeset for help on using the changeset viewer.