Improved service display
This commit is contained in:
@@ -28,22 +28,6 @@ class ADSL {
|
||||
return new ADSL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the additional information used by product_view
|
||||
*/
|
||||
public function product_view($data) {
|
||||
// @todo - this test shouldnt be required
|
||||
if (preg_match('/^a:/',$data))
|
||||
throw new Kohana_Exception('Data shouldnt be a serialized array');
|
||||
|
||||
$ao = ORM::factory('adsl_plan',$data);
|
||||
|
||||
$output = View::factory('adsl/product_view')
|
||||
->set('record',$ao);
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
public function contract_view($data,$price_base,$price_setup) {
|
||||
// @todo - this test shouldnt be required
|
||||
if (preg_match('/^a:/',$data))
|
||||
|
Reference in New Issue
Block a user