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/MEDIA.php

29 lines
627 B
PHP
Raw Normal View History

2011-06-26 12:20:12 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
*
* @package PTA
* @subpackage Media
* @category Models
* @author Deon George
* @copyright (c) 2010 phpTSMadmin Development Team
* @license http://phptsmadmin.sf.net/license.html
*/
2012-11-26 05:57:18 +00:00
class Model_MEDIA extends TSM_ORM {
2011-06-26 12:20:12 +00:00
protected $_table_name = 'MEDIA';
protected $_primary_key = 'VOLUME_NAME';
protected $_sorting = array(
'VOLUME_NAME'=>'ASC',
);
protected $_has_one = array(
);
protected $_has_many = array(
);
2011-06-26 12:47:20 +00:00
public function inlib() {
return in_array($this->STATE,array('MOUNTABLEINLIB','Mountable in library'));
}
2011-06-26 12:20:12 +00:00
}
?>