| @@ 223-230 (lines=8) @@ | ||
| 220 | return -1; |
|
| 221 | } |
|
| 222 | ||
| 223 | public function processform() |
|
| 224 | { |
|
| 225 | if ("SalesReport" == $this->class) { |
|
| 226 | user_error('Please implement processform() on ' . $this->class, E_USER_ERROR); |
|
| 227 | } else { |
|
| 228 | die($_REQUEST); |
|
| 229 | } |
|
| 230 | } |
|
| 231 | } |
|
| 232 | ||
| 233 | class SalesReport_Handler extends Controller |
|
| @@ 115-122 (lines=8) @@ | ||
| 112 | return $fields; |
|
| 113 | } |
|
| 114 | ||
| 115 | public function getExportQuery() |
|
| 116 | { |
|
| 117 | if ("SalesReport" == $this->class) { |
|
| 118 | user_error('Please implement getExportFields() on ' . $this->class, E_USER_ERROR); |
|
| 119 | } else { |
|
| 120 | return $this->getCustomQuery(); |
|
| 121 | } |
|
| 122 | } |
|
| 123 | } |
|
| 124 | ||