Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
load('api', null);
require_once('./includes/functions_datastore.php');
/**
* API: Resolution
*
* @author Blue Static
* @copyright Copyright ©2002 - [#]year[#], Blue Static
* @version $Revision$
* @package Bugdar
*
*/
class ResolutionAPI extends API
{
/**
* Fields
* @var array
* @access private
*/
var $fields = array(
'resolutionid' => array(TYPE_UINT, REQ_AUTO, 'verify_nozero'),
'resolution' => array(TYPE_STR, REQ_YES, 'verify_noempty'),
'displayorder' => array(TYPE_INT, REQ_NO)
);
/**
* Database table
* @var string
* @access private
*/
var $table = 'resolution';
/**
* Table prefix
* @var string
* @access private
*/
var $prefix = TABLE_PREFIX;
// ###################################################################
/**
* Post-insert
*
* @access protected
*/
function post_insert()
{
build_resolutions();
}
// ###################################################################
/**
* Post-update
*
* @access protected
*/
function post_update()
{
build_resolutions();
}
// ###################################################################
/**
* Post-delete
*
* @access protected
*/
function post_delete()
{
build_resolutions();
$this->registry->db->query("UPDATE " . TABLE_PREFIX . "bug SET resolution = " . $this->registry->clean($this->registry->options['defaultresolve'], TYPE_UINT) . " WHERE resolution = " . $this->values['resolutionid']);
}
}
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>