projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02526cb
)
Adds possibility to add a flag to an address.
author
Stéphane Jacob
<sj@m4x.org>
Mon, 20 Dec 2010 19:39:39 +0000
(20:39 +0100)
committer
Sté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
patch
|
blob
|
blame
|
history
diff --git
a/classes/address.php
b/classes/address.php
index
a17c370
..
70e7354
100644
(file)
--- 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