26 lines
773 B
PHP
26 lines
773 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
*
|
|
* @package PTA
|
|
* @subpackage Device Classes
|
|
* @category Models
|
|
* @author Deon George
|
|
* @copyright (c) 2010 phpTSMadmin Development Team
|
|
* @license http://phptsmadmin.sf.net/license.html
|
|
* @note This is model is using the plural name, as storage pools have an attribute with the singular name
|
|
*/
|
|
class Model_DEVCLASSES extends ORMTSM {
|
|
protected $_table_name = 'DEVCLASSES';
|
|
protected $_primary_key = 'DEVCLASS_NAME'; // We need a primary key to detect that the object is loaded.
|
|
protected $_sorting = array(
|
|
'DEVTYPE'=>'ASC',
|
|
'DEVCLASS_NAME'=>'ASC',
|
|
);
|
|
|
|
protected $_has_many = array(
|
|
'STGPOOL'=>array('foreign_key'=>'DEVCLASS','far_key'=>'DEVCLASS_NAME'),
|
|
);
|
|
}
|
|
?>
|