diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Base.pm | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 5 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FiksGataMi.pm | 4 |
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; |