Fixed DSL traffic fetch to work with KH 3.1

This commit is contained in:
Deon George
2011-08-04 00:24:38 +10:00
parent 5953e28f22
commit f1c960aa9f
7 changed files with 54 additions and 43 deletions

View File

@@ -24,7 +24,6 @@ class Model_Service_ADSL extends Model_Service {
'service_connect_date'=>array(
array('Config::date',array(':value')),
),
);
/**

View File

@@ -13,11 +13,16 @@
class Model_Service_ADSL_Traffic extends ORMOSB {
protected $_table_name = 'service__adsl_traffic';
protected $_primary_key = 'service';
protected $_callbacks = array(
'site_id'=>array('set_site_id'),
);
protected $_created_column = FALSE;
protected $_updated_column = FALSE;
public function rules() {
return array(
'site_id'=>array(
array('ORMOSB::set_site_id',array(':validation',':model',':field')),
),
);
}
}
?>