Open Source Billing

This commit is contained in:
Deon George
2013-10-10 13:44:53 +11:00
commit b02d70adf0
2344 changed files with 392978 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?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 ORM_OSB {
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'),
);
protected $_belongs_to = array(
'staticpage_category'=>array('foreign_key'=>'static_page_category_id'),
);
}
?>

View File

@@ -0,0 +1,20 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides static page categories
*
* @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_Category extends ORM_OSB {
protected $_table_name = 'static_page_category';
protected $_sorting = array(
'name'=>'asc',
);
}
?>

View File

@@ -0,0 +1,20 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides Static Page Translation
*
* @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_Translate extends ORM_OSB {
protected $_table_name = 'static_page_translate';
protected $_belongs_to = array(
'staticpage'=>array('foreign_key'=>'id'),
);
}
?>