Changeset 495 for trunk/DNSDB.pm
- Timestamp:
- 05/03/13 15:36:40 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r490 r495 49 49 &addLoc &updateLoc &delLoc &getLoc 50 50 &getLocCount &getLocList &getLocDropdown 51 &getSOA &updateSOA &getRecLine &get DomRecs&getRecCount51 &getSOA &updateSOA &getRecLine &getRecList &getRecCount 52 52 &addRec &updateRec &delRec 53 53 &getLogCount &getLogEntries … … 77 77 &addLoc &updateLoc &delLoc &getLoc 78 78 &getLocCount &getLocList &getLocDropdown 79 &getSOA &updateSOA &getRecLine &get DomRecs&getRecCount79 &getSOA &updateSOA &getRecLine &getRecList &getRecCount 80 80 &addRec &updateRec &delRec 81 81 &getLogCount &getLogEntries … … 238 238 $self->{dbh}->disconnect; 239 239 } 240 241 sub errstr { $DNSDB::errstr; } 240 242 241 243 ## … … 3465 3467 3466 3468 ##fixme: should use above (getRecLine()) to get lines for below? 3467 ## DNSDB::get DomRecs()3468 # Return records for a domain3469 # Takes a d atabase handle, default/live flag, group/domainID, start,3469 ## DNSDB::getRecList() 3470 # Return records for a group or zone 3471 # Takes a default/live flag, group or zone ID, start, 3470 3472 # number of records, sort field, and sort order 3471 3473 # Returns a reference to an array of hashes 3472 sub get DomRecs{3474 sub getRecList { 3473 3475 $errstr = ''; 3474 3476 my $self = shift; … … 3518 3520 3519 3521 my $ret = $dbh->selectall_arrayref($sql, { Slice => {} }, (@bindvars) ); 3522 $errstr = "Error retrieving records: ".$dbh->errstr if !$ret; 3520 3523 return $ret; 3521 } # end get DomRecs()3524 } # end getRecList() 3522 3525 3523 3526
Note:
See TracChangeset
for help on using the changeset viewer.