From: Stéphane Jacob Date: Mon, 20 Dec 2010 19:39:39 +0000 (+0100) Subject: Adds possibility to add a flag to an address. X-Git-Tag: xorg/1.0.2~65 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=24ede2d2f802a3f1d3b64e9832dcb9d7109e5d71;p=platal.git Adds possibility to add a flag to an address. Signed-off-by: Stéphane Jacob --- diff --git a/classes/address.php b/classes/address.php index a17c370..70e7354 100644 --- a/classes/address.php +++ b/classes/address.php @@ -373,6 +373,11 @@ class Address return ($this->flags != null && $this->flags->hasFlag($flag)); } + public function addFlag($flag) + { + $this->flags->addFlag($flag); + } + /** Auxilary function for formatting postal addresses. * If the needle is found in the haystack, it notifies the substitution's * success, modifies the length accordingly and returns either the matching