This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/application/classes/Model/DEVCLASSES.php

26 lines
774 B
PHP
Raw Normal View History

<?php defined('SYSPATH') or die('No direct access allowed.');
/**
*
* @package PTA
2011-06-26 12:20:12 +00:00
* @subpackage Device Classes
* @category Models
* @author Deon George
* @copyright (c) 2010 phpTSMadmin Development Team
* @license http://phptsmadmin.sf.net/license.html
2011-06-26 12:20:12 +00:00
* @note This is model is using the plural name, as storage pools have an attribute with the singular name
*/
class Model_DEVCLASSES extends ORM_TSM {
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',
);
2011-06-26 12:20:12 +00:00
protected $_has_many = array(
'STGPOOL'=>array('foreign_key'=>'DEVCLASS','far_key'=>'DEVCLASS_NAME'),
);
}
?>