2012-12-19 18:24:49 +01:00
|
|
|
<?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
|
2012-12-19 18:24:49 +01:00
|
|
|
*
|
|
|
|
* @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;
|
2012-12-19 18:24:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Resources - tracking object for history
|
|
|
|
*/
|
2016-05-05 22:22:04 +02:00
|
|
|
class resources_tracking extends Api\Storage\Tracking
|
2012-12-19 18:24:49 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|