Adds possibility to add a flag to an address.
authorStéphane Jacob <sj@m4x.org>
Mon, 20 Dec 2010 19:39:39 +0000 (20:39 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 20 Dec 2010 19:39:39 +0000 (20:39 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/address.php

index a17c370..70e7354 100644 (file)
@@ -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