From: Michael J. Rubinsky Date: Fri, 11 Sep 2009 19:09:15 +0000 (-0400) Subject: Lots of stuff: X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=91ee4c1ce7cd882df5137f7925871fc25c71ceaa;p=horde.git 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 --- diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index a8f46151c..0c0c9cf6f 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -2018,9 +2018,6 @@ class Kronolith $menu->add(Horde::applicationUrl('data.php'), _("_Import/Export"), 'data.png', $registry->getImageDir('horde')); } - /* Resources */ - $menu->add(Horde::applicationUrl('resources.php'), _("Resources"), 'resource.png'); - return $menu; } diff --git a/kronolith/lib/Resource/Base.php b/kronolith/lib/Resource/Base.php index c59091f38..29ba9fc31 100644 --- a/kronolith/lib/Resource/Base.php +++ b/kronolith/lib/Resource/Base.php @@ -12,10 +12,16 @@ abstract class Kronolith_Resource_Base * * name - Display name of resource. * calendar - The calendar associated with this resource. +<<<<<<< HEAD * * description - * email - * response_type - a RESPONSETYPE_* constant +======= + * category - The category of this resource...an arbitrary label used + * to group multiple resources for the resource_group implementation + * description - +>>>>>>> Lots of stuff: * * @var array */ @@ -48,9 +54,15 @@ abstract class Kronolith_Resource_Base } /** +<<<<<<< HEAD * Obtain the resource's internal identifier. * * @return mixed The id. +======= + * Obtain the resource's internal id. + * + * @return integer The id. +>>>>>>> Lots of stuff: */ public function getId() { diff --git a/kronolith/lib/Resource/Single.php b/kronolith/lib/Resource/Single.php index 75f168006..b40e175e8 100644 --- a/kronolith/lib/Resource/Single.php +++ b/kronolith/lib/Resource/Single.php @@ -141,11 +141,9 @@ class Kronolith_Resource_Single extends Kronolith_Resource_Base } } -<<<<<<< HEAD public function getResponseType() { return $this->get('response_type'); } -======= ->>>>>>> Only attempt to remove resources from the event if they have actually + } \ No newline at end of file diff --git a/kronolith/resources/index.php b/kronolith/resources/index.php index 9c760435c..cf2339842 100644 --- a/kronolith/resources/index.php +++ b/kronolith/resources/index.php @@ -17,10 +17,11 @@ if (!Horde_Auth::getAuth()) { } $edit_url_base = Horde::applicationUrl('resources/edit.php'); $edit_img = Horde::img('edit.png', _("Edit"), null, $registry->getImageDir('horde')); -$resources = Kronolith::getDriver('Resource')->listResources(PERMS_READ, array('type' => 'Single')); +$resources = Kronolith::listResources(); $display_url_base = Horde::applicationUrl('month.php', true, -1); $delete_url_base = Horde::applicationUrl('resources/delete.php'); $delete_img = Horde::img('delete.png', _("Delete"), null, $registry->getImageDir('horde')); + ?>