[dev] Re: [horde] Shares Lists and url parameter.

Damian Alejandro Fernandez Sosa damlists at cnba.uba.ar
Tue Dec 10 00:06:45 PST 2002


-----Forwarded Message-----

> From: Damian Alejandro Fernandez Sosa <damlists@cnba.uba.ar>
> To: jan@horde.org
> Cc: horde@lists.horde.org, dev@lists.horde.org
> Subject: Re: [horde] Shares Lists and url parameter.
> Date: 09 Dec 2002 23:59:47 -0300
> 
> I make the modificacion to allow only the display of
> calendars/tasks/notepads  from a parameter in the  url (showShare[]).
> 
> 
> for example if you want to always see the calendars which category_name 
> (extracted from the horde_categories table) are
> "b6dcb6259921b4cbe6ec50176f532f63"  and
> "9323a60fc8fb7a2a344ab99d83576b23" ,  you must use the following URL:
> 
> https://fernandezsosa.com.ar/horde/kronolith/month.php?showShare%5B%5D=b6dcb6259921b4cbe6ec50176f532f63&showShare%5B%5D=9323a60fc8fb7a2a344ab99d83576b23
> 
> 
> the same works for nag and mnemo.
> 
> 
> the changed files are:
> 
> 
> horde/lib/Share.php (added 2 functions isSelectedShare($share) and
> _getSelectedShares() )
> 
> horde/kronolith/lib/base.php (named kronolith_base.php in this email )
> horde/nag/lib/base.php (named nag_base.php in this email )
> horde/mnemo/lib/base.php (named mnemo_base.php in this email )
> 
> 
> 
> Please tellme what you think and what I must correct -if any - to allow
> this code go into the cvs.
> 
> 
> 
> 
> 
> 
> On Thu, 2002-12-05 at 06:18, Jan Schneider wrote:
> > Zitat von damlists@cnba.uba.ar:
> > 
> > > this function works like this:
> > > 
> > > I check - for example -  the  "showShare[]" url parameter
> > > 
> > > if the parameter does not exist I allways return true (allow to see
> the
> > > calendar)
> > > 
> > > if the parameter exists, I only return true then the name of the
> calendar
> > > matches any value stored in that array. If don't, I return false.
> > 
> > Sounds good.
> > 
> > > I think that this method can be used in any horde application that
> uses
> > > shares
> > > (kronolith, nag,mnemo, etc)
> > 
> > In this case you should put the method into Share::
> > 
> > Jan.
> > 
> > --
> > http://www.horde.org - The Horde Project
> > http://www.ammma.de - discover your knowledge
> > http://www.tip4all.de - Deine private Tippgemeinschaft
> ----
> 

> 
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe@lists.horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Share.php
Type: application/x-php
Size: 17250 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20021210/7fa64c92/Share.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kronolith_base.php
Type: application/x-php
Size: 5634 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20021210/7fa64c92/kronolith_base.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mnemo_base.php
Type: application/x-php
Size: 4275 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20021210/7fa64c92/mnemo_base.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nag_base.php
Type: application/x-php
Size: 4597 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20021210/7fa64c92/nag_base.bin


More information about the dev mailing list