[Tickets #4938] Re: Sponsored bounty for timed vacation messages
bugs at bugs.horde.org
bugs at bugs.horde.org
Thu Apr 12 04:02:04 UTC 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=4938
-----------------------------------------------------------------------
Ticket | 4938
Updated By | Chuck Hagenbuch <chuck at horde.org>
Summary | Sponsored bounty for timed vacation messages
Queue | Ingo
Version | HEAD
Type | Enhancement
State | Feedback
Priority | 1. Low
Owners |
-----------------------------------------------------------------------
Chuck Hagenbuch <chuck at horde.org> (2007-04-11 21:02) wrote:
I'm ready to commit this patch if it's cleaned up a bit. First, please have
a look through horde/docs/CODING_STANDARDS. Second, you can use Horde_Form
much better in a few places - for instance, it'd be much nicer to have a
Horde_Date object for the start/end times, and to set it with a
monthdayyear Horde_Form type (with a pop-up date picker), rather than the
multiple accessors for year/month/day you currently have.
- you should use $form->getInfo() so that you're not accessing $vars
directly to get the submitted values
- use PHP features, like using strtotime('-1 day') rather than subtracting
a fixed number of seconds from time(). Also on that line you can do $start
= $end = ...
- no need to assign the result of $form->addVariable(...) to a variable
unless you're actually going to do something with it.
There might be a few other things but that should be most of it. Thanks!
More information about the bugs
mailing list