From: <ja...@us...> - 2006-09-21 06:51:07
|
Revision: 734 http://svn.sourceforge.net/gallery-contrib/?rev=734&view=rev Author: jablko Date: 2006-09-20 23:51:00 -0700 (Wed, 20 Sep 2006) Log Message: ----------- PHPDoc fixes Modified Paths: -------------- trunk/gallery2/modules/calendar/CalendarMonth.inc trunk/gallery2/modules/calendar/classes/CalendarEvent.class trunk/gallery2/modules/calendar/classes/GalleryStorage/schema.tpl trunk/gallery2/modules/calendar/module.inc Modified: trunk/gallery2/modules/calendar/CalendarMonth.inc =================================================================== --- trunk/gallery2/modules/calendar/CalendarMonth.inc 2006-09-21 01:48:54 UTC (rev 733) +++ trunk/gallery2/modules/calendar/CalendarMonth.inc 2006-09-21 06:51:00 UTC (rev 734) @@ -1,7 +1,5 @@ <?php /* - * $RCSfile: CalendarMonth.inc,v $ - * * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2006 Bharat Mediratta * @@ -19,12 +17,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -/** - * @version $Revision$ $Date$ - * @package Calendar - * @subpackage UserInterface - * @author Jack Bates <ms...@fr...> - */ /** * FIXME No controller This controller will handle the addition of an item as a children to @@ -32,12 +24,13 @@ * * @package Calendar * @subpackage UserInterface + * @author Jack Bates <ms...@fr...> + * @version $Revision$ $Date$ */ class CalendarMonthController extends GalleryController { /** - * ItemAddOption instances to use when handling this request. Only used by - * test code. + * ItemAddOption instances to use when handling this request. Only used by test code. * * @var array (optionId => object ItemAddOption) $_optionInstances * @access private Modified: trunk/gallery2/modules/calendar/classes/CalendarEvent.class =================================================================== --- trunk/gallery2/modules/calendar/classes/CalendarEvent.class 2006-09-21 01:48:54 UTC (rev 733) +++ trunk/gallery2/modules/calendar/classes/CalendarEvent.class 2006-09-21 06:51:00 UTC (rev 734) @@ -1,7 +1,5 @@ <?php /* - * $RCSfile: CalendarMonth.inc,v $ - * * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2006 Bharat Mediratta * @@ -19,11 +17,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -/** - * @version $Revision: 1.3 $ $Date: 2006/04/06 04:22:12 $ - * @package Calendar - * @author Jack Bates <ms...@fr...> - */ /** * Representation of a single event @@ -41,6 +34,8 @@ * * @package Calendar * @subpackage Classes + * @author Jack Bates <ms...@fr...> + * @version $Revision: 1.3 $ $Date: 2006/04/06 04:22:12 $ */ class CalendarEvent extends GalleryChildEntity { Modified: trunk/gallery2/modules/calendar/classes/GalleryStorage/schema.tpl =================================================================== --- trunk/gallery2/modules/calendar/classes/GalleryStorage/schema.tpl 2006-09-21 01:48:54 UTC (rev 733) +++ trunk/gallery2/modules/calendar/classes/GalleryStorage/schema.tpl 2006-09-21 06:51:00 UTC (rev 734) @@ -6,7 +6,7 @@ DB_COLUMN_PREFIXend int(11), DB_COLUMN_PREFIXsummary varchar(255), PRIMARY KEY(DB_COLUMN_PREFIXid) -) TYPE=DB_TABLE_TYPE +) DB_TABLE_TYPE /*!40100 DEFAULT CHARACTER SET utf8 */; INSERT INTO DB_TABLE_PREFIXSchema ( Modified: trunk/gallery2/modules/calendar/module.inc =================================================================== --- trunk/gallery2/modules/calendar/module.inc 2006-09-21 01:48:54 UTC (rev 733) +++ trunk/gallery2/modules/calendar/module.inc 2006-09-21 06:51:00 UTC (rev 734) @@ -1,7 +1,5 @@ <?php /* - * $RCSfile: module.inc,v $ - * * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2006 Bharat Mediratta * @@ -19,16 +17,13 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -/** - * @version $Revision$ $Date$ - * @package Calendar - * @author Jack Bates <ms...@fr...> - */ /** * FIXME The implementation of the core-module * * @package Calendar + * @author Jack Bates <ms...@fr...> + * @version $Revision$ $Date$ */ class CalendarModule extends GalleryModule { @@ -38,7 +33,7 @@ $this->setId('calendar'); $this->setName($gallery->i18n('Calendar')); $this->setVersion('0.0.2'); - $this->setDescription($gallery->i18n('FIXME An AJAX Calendar')); + $this->setDescription($gallery->i18n('FIXME An Ajax Calendar')); $this->setGroup('misc', $gallery->i18n('Miscellaneous')); $this->setCallbacks('getSiteAdminViews|getUserAdminViews'); $this->setRequiredCoreApi(array(7, 2)); @@ -49,8 +44,8 @@ * @see GalleryModule::getSiteAdminViews */ function getSiteAdminViews() { - return array(null, array('name' => $this->getName(), - 'view' => 'calendar.CalendarSiteAdmin')); + return array(null, array(array('name' => $this->getName(), + 'view' => 'calendar.CalendarSiteAdmin'))); } /** @@ -58,10 +53,9 @@ */ function getUserAdminViews($user) { if (GalleryCapabilities::can('login')) { - list ($ret, $anonymousUserId) = GalleryCoreApi::getPluginParameter('module', 'core', - 'id.anonymousUser'); + list ($ret, $anonymousUserId) = GalleryCoreApi::getAnonymousUserId(); if ($ret) { - return array($ret->wrap(__FILE__, __LINE__), null); + return array($ret, null); } if ($user->getId() != $anonymousUserId) { @@ -79,7 +73,7 @@ 'CalendarEvent', 'CalendarEvent', 'modules/calendar/classes/CalendarEvent.class', $this->getId(), null); if ($ret) { - return $ret->wrap(__FILE__, __LINE__); + return $ret; } } @@ -87,14 +81,11 @@ * @see GalleryModule::upgrade */ function upgrade($currentVersion) { - switch ($currentVersion) { case null: - /* Initial install */ case '0.0.1': - /* FIXME Added CalendarEvent */ case 'end of upgrade path': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |