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.
khosb/modules/static_page/classes/model/staticpage.php

28 lines
665 B
PHP
Raw Normal View History

2010-11-29 22:41:08 +00:00
<?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','far_key'=>'id'),
2010-11-29 22:41:08 +00:00
);
protected $_belongs_to = array(
'staticpage_category'=>array('foreign_key'=>'static_page_category_id'),
);
}