egroupware/resources/inc/class.resources_tracking.inc.php

47 lines
1.4 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* Resources - history & notifications
*
* @author Nathan Gray
* @copyright 2012 Nathan Gray
* @package resources
* @sub-package history
2016-05-05 22:22:04 +02:00
* @see Api\Storage\Tracking
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
2016-05-05 22:22:04 +02:00
use EGroupware\Api;
/**
* Resources - tracking object for history
*/
2016-05-05 22:22:04 +02:00
class resources_tracking extends Api\Storage\Tracking
{
public function __construct() {
$this->appname = 'resources';
$this->id_field = 'res_id';
$this->field2history = array(
'res_id' => 'res_id',
'name' => 'name',
'short_description' => 'short_description',
'cat_id' => 'cat_id',
'quantity' => 'quantity',
'useable' => 'useable',
'location' => 'location',
'storage_info' => 'storage_info',
'bookable' => 'bookable',
'buyable' => 'buyable',
'prize' => 'prize',
'long_description' => 'long_description',
'inventory_number' => 'inventory_number',
'accessory_of' => 'accessory_of'
);
parent::__construct($this->appname);
}
}