aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2015-03-25 17:13:53 +0000
committerHakim Cassimally <hakim@mysociety.org>2015-03-31 08:57:16 +0000
commitc6f9498c79527fbee3cdb1a53f65524c716f20e9 (patch)
tree0088d7245b6a7153a774ca26fb7a8dd0030e2259 /perllib/FixMyStreet
parent7d30cd077274e52d78a982b59f185035ba93cb57 (diff)
[Zurich] change jurisdiction_id in Open311 example
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Base.pm3
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm5
-rw-r--r--perllib/FixMyStreet/Cobrand/FiksGataMi.pm4
3 files changed, 12 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Base.pm b/perllib/FixMyStreet/Cobrand/Base.pm
index 4941712b2..5a9842233 100644
--- a/perllib/FixMyStreet/Cobrand/Base.pm
+++ b/perllib/FixMyStreet/Cobrand/Base.pm
@@ -51,5 +51,8 @@ sub is_default {
return $self->moniker eq 'default';
}
+# NB: this Base class is for 'meta' features. To add base methods for all cobrands,
+# you may want to look at FMS::Cobrand::Default instead!
+
1;
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index fa3d856bc..abf5d4fb5 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -898,5 +898,10 @@ sub get_country_for_ip_address {
return 0;
}
+sub jurisdiction_id_example {
+ my $self = shift;
+ return $self->moniker;
+}
+
1;
diff --git a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
index 34cb2f719..7b175f371 100644
--- a/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
+++ b/perllib/FixMyStreet/Cobrand/FiksGataMi.pm
@@ -223,4 +223,8 @@ sub reports_body_check {
}
}
+sub jurisdiction_id_example {
+ 'fiksgatami.no';
+}
+
1;