<?php
/**
*
* @author Benjamin Gillissen <hide@address.com>
*
* **************************************************************
Copyright (C) 2009 Benjamin Gillissen
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details at:
http://www.gnu.org/copyleft/gpl.html
* **************************************************************
*/
class nzbdelaydb extends dbobject {
public function __construct($cnf='nzbdelay'){ parent::__construct($cnf); }
public function add($did){
$arg=Array('data' => $did);
return $this->dbquery($arg, __FUNCTION__);
}
public function count(){
$arg=Array();
return $this->dbquery($arg, __FUNCTION__);
}
public function del($did){
$arg=Array('data'=>$did);
return $this->dbquery($arg, __FUNCTION__);
}
public function listall(){
//errors::raise('Listall Call()', CORE_LOG_DEBUG, 'DELAY');
$arg=Array();
return $this->dbquery($arg, __FUNCTION__, 'data');
}
}