[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] async service question
From: |
Dave Hall |
Subject: |
Re: [Phpgroupware-developers] async service question |
Date: |
Wed, 28 Apr 2004 16:20:12 +0000 |
Hey Dirk
On Wed, 2004-04-28 at 07:51, Dirk Schaller wrote:
> Hi,
>
> does anyone knows how can I update the async date
> during an async execution?
>
> I want save the time of the async execution in the
> data field for use them in the next async execution.
Hmmmm. I am far from an expert on the async code.
You could store it as a "hidden pref" for the user.
using something like this (please check the src)
<code type="from memory">
if(!is_object($GLOBALS['phpgw']->prefs))
{
$GLOBALS['phpgw']->prefs = createObject('phpgwapi.preferences');
}
$GLOBALS['phpgw']->prefs->read_repository();
$GLOBALS['phpgw']->prefs->data['async']['last_run'] = time();
$GLOBALS['phpgw']->prefs->save_repository();
</code>
Cheers
Dave
- [Phpgroupware-developers] async service question, Dirk Schaller, 2004/04/28
- Re: [Phpgroupware-developers] async service question,
Dave Hall <=
- RE: [Phpgroupware-developers] async service question, Dirk Schaller, 2004/04/28
- Re: [Phpgroupware-developers] async service question, Brian Johnson, 2004/04/28
- RE: [Phpgroupware-developers] async service question, Dirk Schaller, 2004/04/29
- RE: [Phpgroupware-developers] async service question, Brian Johnson, 2004/04/29
- RE: [Phpgroupware-developers] async service question, Dirk Schaller, 2004/04/30
- RE: [Phpgroupware-developers] async service question, Brian Johnson, 2004/04/30