[fw-general] Zend_Date setDay() works strange for sundays

2010-11-29 Thread umpirsky
Hi. I wanted to use Zend_Date to set day of the week and get Zend_Date object which represents that date. I looked in setDay(), but it was working for setting day of a month (1-31) or setting a string representation of a day for given locale. Why I cant do sth like Zend_Date-setDayOfWeek(3); //

[fw-general] Re: Zend_Date setDay() works strange for sundays

2010-11-29 Thread damir.mitrovic
Hi, Zend_Date has method: setWeekday that can be used for this purpose. /** * Sets a new weekday * The weekday can be a number or a string. If a localized weekday name is given, * then it will be parsed as a date in $locale (defaults to the same locale as $this). *

Re: [fw-general] Re: Zend_Date setDay() works strange for sundays

2010-11-29 Thread Саша Стаменковић
Thanks Damir, worked like a charm ;) Regards, Saša Stamenković On Mon, Nov 29, 2010 at 1:48 PM, damir.mitrovic damir.mitro...@gmail.comwrote: Hi, Zend_Date has method: setWeekday that can be used for this purpose. /** * Sets a new weekday * The weekday can be a number or a

[fw-general] Re: problem with autoloading class definition for serialization and deserialization

2010-11-29 Thread David Muir
Throwing it on a slight tangent, but maybe storing the objects in the session isn't the best solution. I've done it in the past, but have found that it's often more trouble than it's worth. I would do instead is either inject a Zend_Session_Namespace to store object data, or create a mapper

[fw-general] singleton models

2010-11-29 Thread Serkan Temizel
Do you think is it a good idea making models singleton? On my project I need *users *model object many times. I call it in the controller, in some plugins and in some view helpers. Making it singletone, I think will improve performance but can't figure out drawbacks. Thanks

Re: [fw-general] Re: problem with autoloading class definition for serialization and deserialization

2010-11-29 Thread Hector Virgen
David, do you think implementing the SPL's Serializable interface can help with concern #3? -- Hector Virgen Sent from my Droid X On Nov 29, 2010 5:10 AM, David Muir davidkmuir+z...@gmail.comdavidkmuir%2bz...@gmail.com wrote: Throwing it on a slight tangent, but maybe storing the objects in the

Re: [fw-general] singleton models

2010-11-29 Thread Dennis Winter
Hi, a Singleton for a user object just makes sense, if it's the model for the current user (because only one current user is avaiable for each request), if you use the users model for e.g. a representation of all users, a Singleton is not the pattern of choice. There is no general advice to

Re: [fw-general] singleton models

2010-11-29 Thread Hector Virgen
The Singleton pattern might be a good idea at first, but be cautious about maintainability in the future. Accessing a Singleton is much like accessing a global variable and introduces many of the same problems. For example, it can be difficult or tricky to unit test a class that loads a

Re: [fw-general] singleton models

2010-11-29 Thread Bill Karwin
On Nov 29, 2010, at 6:28 AM, Serkan Temizel wrote: Making it singletone, I think will improve performance but can't figure out drawbacks. You should take profiling measurements to support this assumption, instead of guessing that the creation of six objects instead of one object is

[fw-general] Intermittent Subversion Server Problems

2010-11-29 Thread brent
Ever since Friday last week I've been having intermittent problems doing checkouts and updates from the ZF Subversion server. Sometimes a checkout will work and other times I get an error like the one below. Anyone have any ideas why this started happening? [bthei...@app01 ~]$ svn co

Re: [fw-general] Intermittent Subversion Server Problems

2010-11-29 Thread Ralph Schindler
This has been fixed now, can you please try it? -ralph On 11/29/10 12:34 PM, brent wrote: Ever since Friday last week I've been having intermittent problems doing checkouts and updates from the ZF Subversion server. Sometimes a checkout will work and other times I get an error like the one

[fw-general] Re: Intermittent Subversion Server Problems

2010-11-29 Thread brent
Looks good, I can't reproduce that error. Thanks Ralph. Brent -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Intermittent-Subversion-Server-Problems-tp3064108p3064274.html Sent from the Zend Framework mailing list archive at Nabble.com.