Multi enhancements, including auto serialization, product editing

This commit is contained in:
Deon George
2012-03-30 15:13:01 +11:00
parent d9c3394b0f
commit 6807b6ab52
30 changed files with 445 additions and 115 deletions

View File

@@ -28,6 +28,10 @@ class Model_Product_Plugin_ADSL extends Model_Product_Plugin {
),
);
public function admin_update() {
return '';
}
// Our required abstract methods
public function feature_summary() {
// @todo This view should render based on the the results of this::allowance();

View File

@@ -67,6 +67,10 @@ class Model_Service_Plugin_ADSL extends Model_Service_Plugin {
return Config::date(strtotime(sprintf('+%s months',$this->contract_term),$this->service_connect_date));
}
public function hasOffpeak() {
return ((is_null($this->product()->base_down_offpeak) OR $this->product()->base_down_offpeak) AND (is_null($this->product()->base_up_offpeak) OR $this->product()->base_up_offpeak)) ? TRUE : FALSE;
}
/**
* This function will return the months that have traffic data.
* This array can be used in a select list to display the traffic for that month