Changeset 495 for trunk/DNSDB.pm


Ignore:
Timestamp:
05/03/13 15:36:40 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Rename getDomRecs to getRecList since it's used for group default
records, domain records, and reverse zone records.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r490 r495  
    4949        &addLoc &updateLoc &delLoc &getLoc
    5050        &getLocCount &getLocList &getLocDropdown
    51         &getSOA &updateSOA &getRecLine &getDomRecs &getRecCount
     51        &getSOA &updateSOA &getRecLine &getRecList &getRecCount
    5252        &addRec &updateRec &delRec
    5353        &getLogCount &getLogEntries
     
    7777                &addLoc &updateLoc &delLoc &getLoc
    7878                &getLocCount &getLocList &getLocDropdown
    79                 &getSOA &updateSOA &getRecLine &getDomRecs &getRecCount
     79                &getSOA &updateSOA &getRecLine &getRecList &getRecCount
    8080                &addRec &updateRec &delRec
    8181                &getLogCount &getLogEntries
     
    238238  $self->{dbh}->disconnect;
    239239}
     240
     241sub errstr { $DNSDB::errstr; }
    240242
    241243##
     
    34653467
    34663468##fixme: should use above (getRecLine()) to get lines for below?
    3467 ## DNSDB::getDomRecs()
    3468 # Return records for a domain
    3469 # Takes a database handle, default/live flag, group/domain ID, start,
     3469## DNSDB::getRecList()
     3470# Return records for a group or zone
     3471# Takes a default/live flag, group or zone ID, start,
    34703472# number of records, sort field, and sort order
    34713473# Returns a reference to an array of hashes
    3472 sub getDomRecs {
     3474sub getRecList {
    34733475  $errstr = '';
    34743476  my $self = shift;
     
    35183520
    35193521  my $ret = $dbh->selectall_arrayref($sql, { Slice => {} }, (@bindvars) );
     3522  $errstr = "Error retrieving records: ".$dbh->errstr if !$ret;
    35203523  return $ret;
    3521 } # end getDomRecs()
     3524} # end getRecList()
    35223525
    35233526
Note: See TracChangeset for help on using the changeset viewer.