Michael J. Rubinsky [Wed, 23 Sep 2009 17:13:40 +0000 (13:13 -0400)]
Better check for valid resource
Michael J. Rubinsky [Tue, 22 Sep 2009 00:23:01 +0000 (20:23 -0400)]
More work on resource groups. Most of the backend support for resource groups is implemented,
but there is no GUI support yet.
Michael J. Rubinsky [Tue, 22 Sep 2009 00:00:00 +0000 (20:00 -0400)]
Move this to the base class.
Michael J. Rubinsky [Mon, 21 Sep 2009 23:58:35 +0000 (19:58 -0400)]
Protect against infinite recursion in case someone is silly enough to
add a resource to one of the resource's own events.
Michael J. Rubinsky [Mon, 21 Sep 2009 23:53:27 +0000 (19:53 -0400)]
Correct conditional that catches conflicts.
Allow the next event to start at the end time of the previous event.
Michael J. Rubinsky [Mon, 21 Sep 2009 21:59:02 +0000 (17:59 -0400)]
Split up the checking resoruce response and adding the (accepted) event to
the resource's calendar.
This is needed because we need the event to have a guid when it's added to
the resource's calendar, otherwise they end up with different GUIDs. This also
gives us some protection against an inconsistent state if there were to be an issue
saving the event to storage after it's been added to the resource's calendar.
Michael J. Rubinsky [Mon, 21 Sep 2009 21:55:25 +0000 (17:55 -0400)]
remove an errant var_dump
Michael J. Rubinsky [Sun, 20 Sep 2009 03:00:07 +0000 (23:00 -0400)]
typo
Michael J. Rubinsky [Fri, 18 Sep 2009 04:38:48 +0000 (00:38 -0400)]
Start fleshing out the K_Resource_Group stuff.
Michael J. Rubinsky [Fri, 18 Sep 2009 04:38:23 +0000 (00:38 -0400)]
spelling
Michael J. Rubinsky [Fri, 18 Sep 2009 04:35:11 +0000 (00:35 -0400)]
Refactor a bit.
Move Kronolith_Resource::checkResources to Kronolith_Resource_*::getResponse()
and remove the responsibilty of adding the event.
Michael J. Rubinsky [Fri, 18 Sep 2009 04:32:23 +0000 (00:32 -0400)]
Fix variable name
Michael J. Rubinsky [Fri, 18 Sep 2009 04:31:34 +0000 (00:31 -0400)]
Remove cruft
Michael J. Rubinsky [Thu, 17 Sep 2009 23:08:28 +0000 (19:08 -0400)]
Removed some cruft from original testing
Michael J. Rubinsky [Thu, 17 Sep 2009 23:06:58 +0000 (19:06 -0400)]
Clean up a bit.
Remove unused factory, add some phpdoc etc...
Michael J. Rubinsky [Thu, 17 Sep 2009 23:04:34 +0000 (19:04 -0400)]
Remove max_reservations.
It's not intuitive and won't be needed in 99.9% of the use cases. For
single resources that may be overbooked, the resource should be created
with a RESPONSETYPE_ALWAYS_EXCEPT responseType instead.
Michael J. Rubinsky [Thu, 17 Sep 2009 00:39:05 +0000 (20:39 -0400)]
use Horde_Support_GUID
Michael J. Rubinsky [Thu, 17 Sep 2009 00:32:21 +0000 (20:32 -0400)]
Provide feedback on resource availability as soon as it's added to the attendees form.
If response type is Kronolith_Resource::RESPONSETYPE_AUTO then use the start and end datetime
values that are now passed from the event form to determine if the resource is free.
Still need to figure out how to (efficiently) pass the datetime values to take into account
AM/PM. Probably break out the javascript from the onClick handler into it's function and
provide logic to check the am/pm fields? Is there an easier/prettier way?
Michael J. Rubinsky [Wed, 16 Sep 2009 22:18:47 +0000 (18:18 -0400)]
Don't open resource calendars in _blank, use the same window
Jan Schneider [Tue, 15 Sep 2009 14:27:49 +0000 (16:27 +0200)]
Fix sequence name.
Michael J. Rubinsky [Sat, 12 Sep 2009 16:22:04 +0000 (12:22 -0400)]
Notify for acceptance as well
Michael J. Rubinsky [Sat, 12 Sep 2009 16:20:54 +0000 (12:20 -0400)]
Need to move this comparison after the loop.
If we are editing an event that was already accepted, we might hit max_reservations
before we get to the event we are editing.
Michael J. Rubinsky [Sat, 12 Sep 2009 16:04:25 +0000 (12:04 -0400)]
Remove already added resources from the select list.
Also have listResources() return the results keyed by the resource_id
Michael J. Rubinsky [Sat, 12 Sep 2009 15:44:07 +0000 (11:44 -0400)]
Make this "Response", just like the attendee's column
Michael J. Rubinsky [Sat, 12 Sep 2009 15:38:48 +0000 (11:38 -0400)]
Move static resource related methods to Kronolith_Resource::
Michael J. Rubinsky [Sat, 12 Sep 2009 15:06:36 +0000 (11:06 -0400)]
More additions based on some discussion with Gunnar in IRC:
- Allow specifying if a resource is required or optional
- Add a response_type property to resources. Specifies if REQUESTS are
either always accepted, always denied, automatically accepted/denied
based on actual availability, handled manually (still todo), or simply
ignored (set response to NONE).
Also, try to clean up the implementation - trying to make it more likely
to be able to be extened for kolab. No idea if this helps of not though ;)
Michael J. Rubinsky [Fri, 11 Sep 2009 23:42:07 +0000 (19:42 -0400)]
Move checkResources() to Kronolith::, and out of the concrete Event_Sql driver.
Move code for auto-accepting resources out of the Event driver and put
it into Kronolith:: Call it from Kronolith_Event::save() method (not 100%
sure about leaving it there, or just calling it in client code before saving
where appropriate).
Michael J. Rubinsky [Fri, 11 Sep 2009 19:21:27 +0000 (15:21 -0400)]
Rename sql script
Michael J. Rubinsky [Fri, 11 Sep 2009 19:09:15 +0000 (15:09 -0400)]
Lots of stuff:
- Move resource viewing/CRUD related pages to resources/*
- Have Kronolith_Resource objects present a Horde_Share_Object-like interface
- Remove the Resource link from the menu - put it in the panel under the "Manage My Calendars" link
- Various tweaks/corrections
Michael J. Rubinsky [Fri, 11 Sep 2009 16:03:49 +0000 (12:03 -0400)]
Add a link in Kronolith's menu for the resource page
Michael J. Rubinsky [Fri, 11 Sep 2009 16:02:43 +0000 (12:02 -0400)]
Fix logic and implement a delete() method for removing resources
from storage
Michael J. Rubinsky [Fri, 11 Sep 2009 16:01:38 +0000 (12:01 -0400)]
Clear resources when clearing attendees page as well
Michael J. Rubinsky [Thu, 10 Sep 2009 16:13:46 +0000 (12:13 -0400)]
Tweak labels now that these are for resources as well
Michael J. Rubinsky [Thu, 10 Sep 2009 16:13:02 +0000 (12:13 -0400)]
Remove some cruft now that we can do this via the UI properly now.
Michael J. Rubinsky [Thu, 10 Sep 2009 16:12:20 +0000 (12:12 -0400)]
Only attempt to remove resources from the event if they have actually
accepted the event.
Michael J. Rubinsky [Thu, 10 Sep 2009 16:11:12 +0000 (12:11 -0400)]
notify user if a requested resource rejects invitation when saving event
Michael J. Rubinsky [Thu, 10 Sep 2009 14:28:57 +0000 (10:28 -0400)]
Initial adding of resource to an event from the attendees page.
Michael J. Rubinsky [Thu, 10 Sep 2009 14:27:44 +0000 (10:27 -0400)]
Show only resource calendars on the event form when we are editing a
resource's calendar.
Michael J. Rubinsky [Thu, 10 Sep 2009 14:26:20 +0000 (10:26 -0400)]
Add basic permission checking to Kronolith::listResources()
Michael J. Rubinsky [Thu, 10 Sep 2009 14:13:52 +0000 (10:13 -0400)]
Add a setResources() method similar to setAttendees() for bulk setting
the local resources array
Michael J. Rubinsky [Thu, 10 Sep 2009 14:12:52 +0000 (10:12 -0400)]
remove commented out code
Michael J. Rubinsky [Wed, 9 Sep 2009 19:31:28 +0000 (15:31 -0400)]
Move hasPermisson to the base class, implement ::get() to behave like
a share.
Michael J. Rubinsky [Wed, 9 Sep 2009 19:30:54 +0000 (15:30 -0400)]
typos
Michael J. Rubinsky [Wed, 9 Sep 2009 19:30:28 +0000 (15:30 -0400)]
use Kronolith::getInternalCalendar() here as well
Michael J. Rubinsky [Wed, 9 Sep 2009 19:10:56 +0000 (15:10 -0400)]
Experiment with getting either a share or resource here
Michael J. Rubinsky [Wed, 9 Sep 2009 18:49:02 +0000 (14:49 -0400)]
listEvents:: isn't detailed enough for this...manually compare
start/end times to determine if an event collides.
Add basic hasPermission method, not sure if it's really needed yet.
Michael J. Rubinsky [Wed, 9 Sep 2009 18:48:21 +0000 (14:48 -0400)]
Add resources to list of attendees returned from this method
Michael J. Rubinsky [Wed, 9 Sep 2009 00:02:28 +0000 (20:02 -0400)]
Easier way of exlcuding the current event from checking resource availability.
Michael J. Rubinsky [Wed, 9 Sep 2009 00:01:29 +0000 (20:01 -0400)]
No autocompletion for resources (yet??)
Michael J. Rubinsky [Wed, 9 Sep 2009 00:01:02 +0000 (20:01 -0400)]
Clarify why we are doing this bit of code here...
Michael J. Rubinsky [Tue, 8 Sep 2009 23:57:42 +0000 (19:57 -0400)]
Fix passing the event date to the attendee form.
Michael J. Rubinsky [Tue, 8 Sep 2009 17:22:18 +0000 (13:22 -0400)]
parse error
Michael J. Rubinsky [Tue, 8 Sep 2009 17:20:27 +0000 (13:20 -0400)]
Properly pass the calender_id to ::listEvents()
is_a -> instanceof
check for error
Michael J. Rubinsky [Tue, 8 Sep 2009 16:44:47 +0000 (12:44 -0400)]
Stqrt hashing out the isFree() method. Remove deprecated Resource.php file, phpdoc
Michael J. Rubinsky [Tue, 8 Sep 2009 16:43:07 +0000 (12:43 -0400)]
For now, don't use autocomplete for resource adding to attendees.inc -
we will need the resource's uid.
Michael J. Rubinsky [Fri, 4 Sep 2009 00:08:49 +0000 (20:08 -0400)]
resource event delettion, start building a useful resource page...
Make sure we delete the resource from the 'original' event when
directly deleting the resource's copy of the event.
Fix some variable/method names
Start building a resorce management page.
Michael J. Rubinsky [Thu, 3 Sep 2009 22:39:30 +0000 (18:39 -0400)]
Be sure to load the empty resources array when creating a new event.
Michael J. Rubinsky [Thu, 3 Sep 2009 20:36:15 +0000 (16:36 -0400)]
Actually remove this code
Michael J. Rubinsky [Thu, 3 Sep 2009 20:34:20 +0000 (16:34 -0400)]
More tweaks/fleshing out:
- Perms checks
- Remove Kronolith::getResource() - use the driver's getResource() method directly.
- have K_Driver_Resource::listResources() method return resource objects directly.
Michael J. Rubinsky [Thu, 3 Sep 2009 18:27:34 +0000 (14:27 -0400)]
Fix method name
Michael J. Rubinsky [Thu, 3 Sep 2009 17:23:22 +0000 (13:23 -0400)]
Large bit of work on Kronolith Resources.
- K_Event_Resource and k_Driver_Resource resources.
- Implement viewing/editing a resource's events.
- Show resource calendar title in panel
- Get rid of lib/Resource.php (functionality moved to Kronolith::)
Michael J. Rubinsky [Wed, 2 Sep 2009 20:18:57 +0000 (16:18 -0400)]
tweak panel display when displaying display_cals.
Add displayed calendar(s) name, and allow expanding/collapsing.
Tweak text to display 'Return to calendars' when anonymous user.
Michael J. Rubinsky [Wed, 2 Sep 2009 19:24:47 +0000 (15:24 -0400)]
Replace calendar panel with a "Return to my calendars" link when displaying display_cals.
Michael J. Rubinsky [Wed, 2 Sep 2009 16:43:31 +0000 (12:43 -0400)]
Clarify the use of the display_cal parameter
Michael J. Rubinsky [Thu, 20 Aug 2009 23:13:36 +0000 (19:13 -0400)]
Some ideas on feeling out a UI for administration...some of this will likely change
Michael J. Rubinsky [Thu, 20 Aug 2009 20:57:19 +0000 (16:57 -0400)]
listObjects API blurb
Michael J. Rubinsky [Wed, 19 Aug 2009 14:47:53 +0000 (10:47 -0400)]
implement basic listing method...no filters yet.
Michael J. Rubinsky [Wed, 19 Aug 2009 14:28:00 +0000 (10:28 -0400)]
Use a static member to hold the Kronolith_Driver object
Michael J. Rubinsky [Wed, 19 Aug 2009 00:16:39 +0000 (20:16 -0400)]
First attempt at displaying resource FreeBusy info on the attendee view
Michael J. Rubinsky [Tue, 18 Aug 2009 20:05:19 +0000 (16:05 -0400)]
Need to move the acceptance/denial of requests to the resource object
itself...otherwise, the internal properties array won't be serialized
before saving.
Michael J. Rubinsky [Tue, 18 Aug 2009 16:19:30 +0000 (12:19 -0400)]
Check for cases where resource is not found
Michael J. Rubinsky [Tue, 18 Aug 2009 16:17:18 +0000 (12:17 -0400)]
Fix column name, check for error from DB
Michael J. Rubinsky [Tue, 18 Aug 2009 16:13:20 +0000 (12:13 -0400)]
Better field name, add method for retrieving resources, supporting code...
Michael J. Rubinsky [Tue, 18 Aug 2009 15:10:52 +0000 (11:10 -0400)]
Allow updating of existing resources, some error checking etc...
Michael J. Rubinsky [Mon, 17 Aug 2009 21:06:15 +0000 (17:06 -0400)]
Start fleshing out the code to implement resources
Michael J. Rubinsky [Mon, 17 Aug 2009 18:37:53 +0000 (14:37 -0400)]
add kronolith_resource table
Michael J. Rubinsky [Mon, 17 Aug 2009 17:43:18 +0000 (13:43 -0400)]
add sql upgrade script and update creation scripts for resource field
Michael J. Rubinsky [Mon, 17 Aug 2009 17:40:06 +0000 (13:40 -0400)]
Flesh out some methods in Event and Driver to deal with auto accepting
resource requests
Michael J. Rubinsky [Mon, 17 Aug 2009 17:06:15 +0000 (13:06 -0400)]
Start stubbing out some ideas for Kronolith_Resource implementation
Michael J. Rubinsky [Fri, 14 Aug 2009 18:55:08 +0000 (14:55 -0400)]
Add stub for Kronolith_Resource
Michael M Slusarz [Tue, 29 Sep 2009 19:36:56 +0000 (13:36 -0600)]
Recent Searches was mislabeled as Saved Searches
Michael M Slusarz [Tue, 29 Sep 2009 19:04:25 +0000 (13:04 -0600)]
Ticket #6875: Re-add OR searches to advanced search
Michael M Slusarz [Tue, 29 Sep 2009 04:34:21 +0000 (22:34 -0600)]
Yet more Search/Virtual Folder fixes/improvements
Big addition: ability to right click user-editable Virtual Folders in
DIMP and receieve a context menu with Edit/Delete options.
Add notifications when deleting virtual folders.
Correctly populate label input when editing virtual folders.
Michael M Slusarz [Tue, 29 Sep 2009 04:34:08 +0000 (22:34 -0600)]
Fix thread image positioning in dimp
Michael M Slusarz [Tue, 29 Sep 2009 04:28:11 +0000 (22:28 -0600)]
Focus on search criteria field after creation.
Michael M Slusarz [Tue, 29 Sep 2009 04:10:24 +0000 (22:10 -0600)]
Fix missing name parameter
Michael M Slusarz [Tue, 29 Sep 2009 04:09:57 +0000 (22:09 -0600)]
Add deleted vfolders to eltdiff list.
Michael M Slusarz [Mon, 28 Sep 2009 23:29:55 +0000 (17:29 -0600)]
Fix English and indenting
Michael M Slusarz [Mon, 28 Sep 2009 22:53:19 +0000 (16:53 -0600)]
Need this more complex way to resize the iframe after all images are loaded
Michael M Slusarz [Mon, 28 Sep 2009 22:51:27 +0000 (16:51 -0600)]
Don't show info message if part is marked as attachment.
Michael M Slusarz [Mon, 28 Sep 2009 22:26:59 +0000 (16:26 -0600)]
Add AND keyword to search UI
Michael M Slusarz [Mon, 28 Sep 2009 22:07:12 +0000 (16:07 -0600)]
Better naming for this function
Michael M Slusarz [Mon, 28 Sep 2009 21:06:33 +0000 (15:06 -0600)]
Rename Virtual Folder section to Saved Searches
Hopefully, I will be introducing the code for filtering soon. This is an
example of a saved search that is not a virtual folder, so go ahead and
do the necessary UI changes now.
While I'm here, tweak a bit of the search page CSS.
Michael M Slusarz [Mon, 28 Sep 2009 20:47:32 +0000 (14:47 -0600)]
Abstract out folder tree image generation.
Use this nicer tree in the advanced search page.
Michael M Slusarz [Mon, 28 Sep 2009 19:23:14 +0000 (13:23 -0600)]
Bug #8606: Fix dragging over IFRAMEs
Michael J. Rubinsky [Mon, 28 Sep 2009 17:57:45 +0000 (13:57 -0400)]
track Horde_Lock changes
Michael M Slusarz [Mon, 28 Sep 2009 17:46:17 +0000 (11:46 -0600)]
Fix replacement string
Michael M Slusarz [Mon, 28 Sep 2009 17:11:13 +0000 (11:11 -0600)]
Another attempt at sizing correctly - use entire HTML element instead of BODY tag
Michael M Slusarz [Mon, 28 Sep 2009 17:10:34 +0000 (11:10 -0600)]
Fix DOM traversal
Michael M Slusarz [Mon, 28 Sep 2009 06:56:33 +0000 (00:56 -0600)]
Fix hover effect over folders in dimp