26 lines
600 B
PHP
26 lines
600 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
*
|
|
* @package PTA
|
|
* @subpackage Library
|
|
* @category Models
|
|
* @author Deon George
|
|
* @copyright (c) 2010 phpTSMadmin Development Team
|
|
* @license http://phptsmadmin.sf.net/license.html
|
|
*/
|
|
class Model_LIBRARY extends ORMTSM {
|
|
protected $_table_name = 'LIBRARIES';
|
|
protected $_primary_key = 'LIBRARY_NAME';
|
|
protected $_sorting = array(
|
|
'LIBRARY_NAME'=>'ASC',
|
|
);
|
|
|
|
protected $_has_one = array(
|
|
);
|
|
protected $_has_many = array(
|
|
'DRIVE'=>array('foreign_key'=>'LIBRARY_NAME','far_key'=>'LIBRARY_NAME'),
|
|
);
|
|
}
|
|
?>
|