[dev] [commits] Horde branch master updated. a4b07653ae2a6b292850652903cc7d534ef43c52

Jan Schneider jan at horde.org
Wed Feb 23 20:46:53 UTC 2011


Zitat von Michael M Slusarz <slusarz at horde.org>:

> commit 9b8de0b2d4cec4dc23c3efe527211eb8740a2efd
> Author: Michael M Slusarz <slusarz at curecanti.org>
> Date:   Wed Feb 23 12:20:34 2011 -0700
>
>     Guess you can't use switch in this manner
>
>  framework/Imap_Client/lib/Horde/Imap/Client/Ids.php |   17 +++++------------
>  1 files changed, 5 insertions(+), 12 deletions(-)
>
> http://git.horde.org/horde-git/-/commit/9b8de0b2d4cec4dc23c3efe527211eb8740a2efd

No, but you can do something like:

switch (true) {
case $ids == self::ALL:
case $ids == self::SEARCH_RES:
     ...
case is_array($ids):
     ...
}

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list