From 2cb7da5a8cc0fbac59d94c9be1a31b2e8ab1264d Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 17 Sep 2009 19:06:58 -0400 Subject: [PATCH] Clean up a bit. Remove unused factory, add some phpdoc etc... --- kronolith/lib/Resource.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/kronolith/lib/Resource.php b/kronolith/lib/Resource.php index b7465e922..59f90ff55 100644 --- a/kronolith/lib/Resource.php +++ b/kronolith/lib/Resource.php @@ -54,12 +54,12 @@ class Kronolith_Resource } /** - * Adds a new resource to storage - * - * @param Kronolith_Resource $resource - * - * @return unknown_type - */ + * Adds a new resource to storage + * + * @param Kronolith_Resource $resource + * + * @return unknown_type + */ static public function addResource($resource) { // Create a new calendar id. @@ -92,8 +92,9 @@ class Kronolith_Resource /** * Determine if the provided calendar id represents a resource's calendar. * - * @param $calendar - * @return unknown_type + * @param string $calendar The calendar identifier to check. + * + * @return boolean */ static public function isResourceCalendar($calendar) { @@ -108,6 +109,8 @@ class Kronolith_Resource * Function to check availability and set response status for each resource * attached to the event. * + * @param Kronolith_Event $event The event object to check the resources of + * * @return void */ static public function checkResources($event) -- 2.11.0