OSB enhancements to date
This commit is contained in:
2
application/classes/model/.htaccess
Normal file
2
application/classes/model/.htaccess
Normal file
@@ -0,0 +1,2 @@
|
||||
order allow,deny
|
||||
deny from all
|
34
application/classes/model/module.php
Normal file
34
application/classes/model/module.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* OSB Application Module Model
|
||||
*
|
||||
* This module must remain in applications/ as it is used very early in the
|
||||
* OSB initialisation.
|
||||
*
|
||||
* @package OSB
|
||||
* @subpackage Modules
|
||||
* @category Models
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Deon George
|
||||
* @license http://dev.leenooks.net/license.html
|
||||
*/
|
||||
class Model_Module extends ORMOSB {
|
||||
// Relationships
|
||||
protected $_has_many = array(
|
||||
'module_method'=>array(),
|
||||
);
|
||||
protected $_has_one = array(
|
||||
'record_id'=>array()
|
||||
);
|
||||
|
||||
protected $_sorting = array(
|
||||
'status'=>'DESC',
|
||||
'name'=>'ASC',
|
||||
);
|
||||
|
||||
protected $_formats = array(
|
||||
'status'=>array('StaticList_YesNo::display'=>array()),
|
||||
);
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user