Location: PHPKode > projects > PPI Framework > dragoonis-PPI-Framework-3abe632/Model/Exception.php
<?php

/**
 *
 * @version   1.0
 * @author    Paul Dragoonis <hide@address.com>
 * @license   http://opensource.org/licenses/gpl-license.php GNU Public License
 * @copyright Digiflex Development
 * @package   PPI
 */
class PPI_Model_Exception extends PPI_Model 
{
	
	public function __construct ()
	{
		parent::__construct('ppi_errors', 'id');
	}
	
	/**
	 * Delete an exception fromt he lgo
	 * @param unknown_type $p_iRecordID
	 */
	public function deleteRecord($p_iRecordID="")
	{
		if (empty ($p_iRecordID))
		 return false;
		 
		$sQuery = "
		 DELETE FROM
		  ppi_errors
		 WHERE
		  id='".mysql_real_escape_string($p_iRecordID)."'";
	  return  $this->query ($sQuery, __FUNCTION__);
	}
}
Return current item: PPI Framework