public function ListAllPlace($param) { $dataset = parent::ListAllPlaceProcess($param); if ($param['export'] == "json") { $this->ExportJSON('List all place', $dataset); } else { return $dataset; } }