130a87aa9a
Minor updates for ADSL services Updates to Sort::MAsort() Move core OSB items under application/ Moved ACCOUNT functions under application Minor updates to task
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* This class supports ADSL Plans
|
|
*
|
|
* @package OSB
|
|
* @subpackage ADSL
|
|
* @category Models
|
|
* @author Deon George
|
|
* @copyright (c) 2010 Open Source Billing
|
|
* @license http://dev.osbill.net/license.html
|
|
*/
|
|
class Model_ADSL_Plan extends ORMOSB {
|
|
// Relationships
|
|
// @todo This model should probably be joined with product_plugin_adsl
|
|
protected $_belongs_to = array(
|
|
'adsl_supplier_plan'=>array(),
|
|
);
|
|
protected $_has_many = array(
|
|
'product'=>array('far_key'=>'id','foreign_key'=>'prod_plugin_data'),
|
|
);
|
|
|
|
protected $_display_filters = array(
|
|
'extra_down_peak'=>array(
|
|
array('Tax::add',array(':value')),
|
|
array('Currency::display',array(':value')),
|
|
),
|
|
'extra_down_offpeak'=>array(
|
|
array('Tax::add',array(':value')),
|
|
array('Currency::display',array(':value')),
|
|
),
|
|
'extra_up_peak'=>array(
|
|
array('Tax::add',array(':value')),
|
|
array('Currency::display',array(':value')),
|
|
),
|
|
'extra_up_offpeak'=>array(
|
|
array('Tax::add',array(':value')),
|
|
array('Currency::display',array(':value')),
|
|
),
|
|
);
|
|
}
|
|
?>
|