update_traffic(); } } /** * Charges for excess traffic usage */ public function action_chargetraffic() { // @todo This things to collect traffic on needs to be configurable foreach (array('ExetelVisp','ExetelHSPA','PeopleAgent','iiNetADSL') as $source) { $traffic = Service_Traffic_ADSL::instance($source); $traffic->charge_excess_traffic(); } } /** * Send alerts to users when they exceed their traffic allowance */ public function action_alerttraffic() { // @todo This things to collect traffic on needs to be configurable foreach (array('ExetelVisp','ExetelHSPA','PeopleAgent','iiNetADSL') as $source) { $traffic = Service_Traffic_ADSL::instance($source); $traffic->alert_traffic(); } } } ?>