OSB enhancements to date
This commit is contained in:
27
modules/static_page/classes/model/staticpage.php
Normal file
27
modules/static_page/classes/model/staticpage.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* This class provides static pages.
|
||||
*
|
||||
* @package OSB
|
||||
* @subpackage Static Page
|
||||
* @category Models
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Model_StaticPage extends ORMOSB {
|
||||
protected $_table_name = 'static_page';
|
||||
|
||||
protected $_sorting = array(
|
||||
'name'=>'asc',
|
||||
);
|
||||
|
||||
protected $_has_many = array(
|
||||
'staticpage_translate'=>array('foreign_key'=>'static_page_id'),
|
||||
);
|
||||
|
||||
protected $_belongs_to = array(
|
||||
'staticpage_category'=>array('foreign_key'=>'static_page_category_id'),
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user