CVS update: /cowiki/includes/cowiki/plugin/

[email protected] 12 Sep 2005 22:48:03 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: dgorski 
Date: 2005/09/12 15:48:03

Modified:
   cowiki/includes/cowiki/plugin/class.PrivateFrontMenuEmptyDisplay.php
   cowiki/includes/cowiki/plugin/class.PrivateFrontMenuDefaultDisplay.php
   cowiki/includes/cowiki/plugin/class.PrivateFrontMenuBottomDisplay.php
   cowiki/includes/cowiki/plugin/class.PrivateFrontDirectoryEditor.php
   cowiki/includes/cowiki/plugin/class.PrivateFrontDirectoryDisplay.php
   cowiki/includes/cowiki/plugin/class.PrivateFrontCommentList.php
   cowiki/includes/cowiki/plugin/class.PrivateFrontBreadcrumbDisplay.php
   cowiki/includes/cowiki/plugin/class.PrivateAdminWebListEditor.php
   cowiki/includes/cowiki/plugin/class.CustomUserList.php
   cowiki/includes/cowiki/plugin/class.CustomRssViewer.php
   cowiki/includes/cowiki/plugin/class.CustomReferrer.php
   cowiki/includes/cowiki/plugin/class.CustomPluginInfo.php
   cowiki/includes/cowiki/plugin/class.CustomEmbed.php
   cowiki/includes/cowiki/plugin/class.CustomDonatePayPal.php
   cowiki/includes/cowiki/plugin/class.CustomDocRecent.php
   cowiki/includes/cowiki/plugin/class.CustomComRecent.php
   cowiki/includes/cowiki/plugin/class.CustomAutoIndex.php

Log:
 "hasPluginParam()" is the right way to check if a plugin parameter exists. Using the result of "getPluginParam()" as boolean expression can/will lead to errors.

File Changes:

Directory: /cowiki/includes/cowiki/plugin/
==========================================

File [changed]: class.PrivateFrontMenuEmptyDisplay.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateFrontMenuEmptyDisplay.php?r1=1.7&r2=1.8
Delta lines:  +3 -3
-------------------
--- class.PrivateFrontMenuEmptyDisplay.php	16 Jan 2005 23:32:09 -0000	1.7
+++ class.PrivateFrontMenuEmptyDisplay.php	12 Sep 2005 22:48:00 -0000	1.8
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateFrontMenuEmptyDisplay.php,v 1.7 2005/01/16 23:32:09 dgorski Exp $
+ * $Id: class.PrivateFrontMenuEmptyDisplay.php,v 1.8 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -31,7 +31,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.7 $
+ * @version     $Revision: 1.8 $
  *
  */
 
@@ -83,7 +83,7 @@
 
         // Set plugin parameters, if passed by a plugin call, or set
         // defaults
-        $nWidth = $this->Context->getPluginParam('width')
+        $nWidth = $this->Context->hasPluginParam('width')
                     ? $this->Context->getPluginParam('width')
                     : 40;
 

File [changed]: class.PrivateFrontMenuDefaultDisplay.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateFrontMenuDefaultDisplay.php?r1=1.13&r2=1.14
Delta lines:  +17 -17
---------------------
--- class.PrivateFrontMenuDefaultDisplay.php	28 Feb 2005 04:14:03 -0000	1.13
+++ class.PrivateFrontMenuDefaultDisplay.php	12 Sep 2005 22:48:00 -0000	1.14
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateFrontMenuDefaultDisplay.php,v 1.13 2005/02/28 04:14:03 nibra Exp $
+ * $Id: class.PrivateFrontMenuDefaultDisplay.php,v 1.14 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -31,7 +31,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.13 $
+ * @version     $Revision: 1.14 $
  *
  */
 
@@ -104,15 +104,15 @@
         // ----------------------------------------------------------------
 
         // Get plugin parameters
-        $sImg = $this->Context->getPluginParam('img')
+        $sImg = $this->Context->hasPluginParam('img')
                   ? $this->Context->getPluginParam('img')
                   : false;
 
-        $sHspace = $this->Context->getPluginParam('imghspace')
+        $sHspace = $this->Context->hasPluginParam('imghspace')
                     ? $this->Context->getPluginParam('imghspace')
                     : '0';
 
-        $sVspace = $this->Context->getPluginParam('imgvspace')
+        $sVspace = $this->Context->hasPluginParam('imgvspace')
                     ? $this->Context->getPluginParam('imgvspace')
                     : '0';
 

File [changed]: class.PrivateFrontMenuBottomDisplay.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateFrontMenuBottomDisplay.php?r1=1.9&r2=1.10
Delta lines:  +3 -3
-------------------
--- class.PrivateFrontMenuBottomDisplay.php	19 Feb 2005 19:55:06 -0000	1.9
+++ class.PrivateFrontMenuBottomDisplay.php	12 Sep 2005 22:48:00 -0000	1.10
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateFrontMenuBottomDisplay.php,v 1.9 2005/02/19 19:55:06 dgorski Exp $
+ * $Id: class.PrivateFrontMenuBottomDisplay.php,v 1.10 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -32,7 +32,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.9 $
+ * @version     $Revision: 1.10 $
  *
  */
 
@@ -100,7 +100,7 @@
         // ----------------------------------------------------------------
 
         // Get additional plugin parameters
-        $sDeli = $this->Context->getPluginParam('delimiter')
+        $sDeli = $this->Context->hasPluginParam('delimiter')
                     ? $this->Context->getPluginParam('delimiter')
                     : $this->Registry->get('PAGE_FOOTER_DELI');
 

File [changed]: class.PrivateFrontDirectoryEditor.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateFrontDirectoryEditor.php?r1=1.25&r2=1.26
Delta lines:  +21 -9
--------------------
--- class.PrivateFrontDirectoryEditor.php	27 Feb 2005 20:35:10 -0000	1.25
+++ class.PrivateFrontDirectoryEditor.php	12 Sep 2005 22:48:00 -0000	1.26
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateFrontDirectoryEditor.php,v 1.25 2005/02/27 20:35:10 dgorski Exp $
+ * $Id: class.PrivateFrontDirectoryEditor.php,v 1.26 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -32,7 +32,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.25 $
+ * @version     $Revision: 1.26 $
  *
  */
 
@@ -129,7 +129,7 @@
 
         // Set plugin parameters, if given by a plugin call, or set
         // defaults
-        $nCutOff = $this->Context->getPluginParam('cutoff')
+        $nCutOff = $this->Context->hasPluginParam('cutoff')
                       ?   $this->Context->getPluginParam('cutoff')
                       :   70;
 
@@ -391,20 +391,32 @@
             // Main form: MOVE?
             if ($this->Request->has('button_move')){
 
-                // Check if any markers are selected
+                // Gather all selected document/directory nodes
                 $It = $Edit->getItems()->iterator();
 
-                $bSelected = false;
+                $aSelNodes = array();
                 while ($Obj = $It->next()) {
                     if ($this->Request->has('marker_'.$Obj->get('id'))) {
-                        $bSelected = true;
-                        break;
+                        $aSelNodes[] = $Obj->get('id');
                     }
                 }
 
-                if (!$bSelected) {
-                    $this->Context->addError(430);
+                if (sizeof($aSelNodes) > 0) {
+                    $this->Context->setSessionVar(
+                      'selected_nodes',
+                      $aSelNodes,
+                      'PrivateFrontDirectoryEditor'
+                    );
+
+                    // Exit this plugin, call the 'Node mover'
+                    $this->Response->redirectToController(
+                        'node='.$Edit->get('id')
+                        .'&cmd='.CMD_MOVENODE
+                    );
                 }
+
+                // No nodes has been selected
+                $this->Context->addError(430);
             }
 
             // ------------------------------------------------------------

File [changed]: class.PrivateFrontDirectoryDisplay.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateFrontDirectoryDisplay.php?r1=1.9&r2=1.10
Delta lines:  +3 -3
-------------------
--- class.PrivateFrontDirectoryDisplay.php	16 Jan 2005 23:32:09 -0000	1.9
+++ class.PrivateFrontDirectoryDisplay.php	12 Sep 2005 22:48:00 -0000	1.10
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateFrontDirectoryDisplay.php,v 1.9 2005/01/16 23:32:09 dgorski Exp $
+ * $Id: class.PrivateFrontDirectoryDisplay.php,v 1.10 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -31,7 +31,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.9 $
+ * @version     $Revision: 1.10 $
  *
  */
 
@@ -105,7 +105,7 @@
         // ----------------------------------------------------------------
 
         // Set plugin parameters, if given by a plugin call, or set defaults
-        $nCutOff = $this->Context->getPluginParam('cutoff')
+        $nCutOff = $this->Context->hasPluginParam('cutoff')
                     ? $this->Context->getPluginParam('cutoff')
                     : 55;
 

File [changed]: class.PrivateFrontCommentList.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateFrontCommentList.php?r1=1.8&r2=1.9
Delta lines:  +3 -3
-------------------
--- class.PrivateFrontCommentList.php	17 Apr 2005 03:21:54 -0000	1.8
+++ class.PrivateFrontCommentList.php	12 Sep 2005 22:48:00 -0000	1.9
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateFrontCommentList.php,v 1.8 2005/04/17 03:21:54 dgorski Exp $
+ * $Id: class.PrivateFrontCommentList.php,v 1.9 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -31,7 +31,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.8 $
+ * @version     $Revision: 1.9 $
  *
  */
 
@@ -83,7 +83,7 @@
 
         // Set plugin parameters, if passed by a plugin call, or set
         // defaults
-        $nLimit = $this->Context->getPluginParam('limit')
+        $nLimit = $this->Context->hasPluginParam('limit')
                     ? $this->Context->getPluginParam('limit')
                     : 20;
 

File [changed]: class.PrivateFrontBreadcrumbDisplay.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateFrontBreadcrumbDisplay.php?r1=1.10&r2=1.11
Delta lines:  +4 -4
-------------------
--- class.PrivateFrontBreadcrumbDisplay.php	16 Jan 2005 23:32:09 -0000	1.10
+++ class.PrivateFrontBreadcrumbDisplay.php	12 Sep 2005 22:48:00 -0000	1.11
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateFrontBreadcrumbDisplay.php,v 1.10 2005/01/16 23:32:09 dgorski Exp $
+ * $Id: class.PrivateFrontBreadcrumbDisplay.php,v 1.11 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -34,7 +34,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.10 $
+ * @version     $Revision: 1.11 $
  *
  */
 
@@ -100,11 +100,11 @@
         // ----------------------------------------------------------------
 
         // Get additional plugin parameters
-        $sDeli = $this->Context->getPluginParam('delimiter')
+        $sDeli = $this->Context->hasPluginParam('delimiter')
                     ? $this->Context->getPluginParam('delimiter')
                     : $this->Registry->get('PAGE_BREADCRUMB_DELI');
 
-        $nDepth = $this->Context->getPluginParam('maxdepth')
+        $nDepth = $this->Context->hasPluginParam('maxdepth')
                     ? abs((int)$this->Context->getPluginParam('maxdepth'))
                     : $this->Registry->get('PAGE_BREADCRUMB_DEPTH');
 

File [changed]: class.PrivateAdminWebListEditor.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.PrivateAdminWebListEditor.php?r1=1.24&r2=1.25
Delta lines:  +3 -3
-------------------
--- class.PrivateAdminWebListEditor.php	27 Feb 2005 20:35:11 -0000	1.24
+++ class.PrivateAdminWebListEditor.php	12 Sep 2005 22:48:00 -0000	1.25
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.PrivateAdminWebListEditor.php,v 1.24 2005/02/27 20:35:11 dgorski Exp $
+ * $Id: class.PrivateAdminWebListEditor.php,v 1.25 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -31,7 +31,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.24 $
+ * @version     $Revision: 1.25 $
  *
  */
 
@@ -99,7 +99,7 @@
 
         // Set plugin parameters, if given by a plugin call, or set
         // defaults
-        $nCutOff = $this->Context->getPluginParam('cutoff')
+        $nCutOff = $this->Context->hasPluginParam('cutoff')
                     ? $this->Context->getPluginParam('cutoff')
                     : 35;
 

File [changed]: class.CustomUserList.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomUserList.php?r1=1.6&r2=1.7
Delta lines:  +4 -4
-------------------
--- class.CustomUserList.php	16 Jan 2005 23:32:09 -0000	1.6
+++ class.CustomUserList.php	12 Sep 2005 22:48:00 -0000	1.7
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomUserList.php,v 1.6 2005/01/16 23:32:09 dgorski Exp $
+ * $Id: class.CustomUserList.php,v 1.7 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -30,7 +30,7 @@
  * @author      Franziskus Domig <[email protected]>
  * @copyright   (C) Franziskus Domig {@link http://seric.cowiki.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.6 $
+ * @version     $Revision: 1.7 $
  *
  */
 
@@ -93,10 +93,10 @@
         // ----------------------------------------------------------------
 
         // Get the title param if defined
-        $sTitle = $this->Context->getPluginParam('title')
+        $sTitle = $this->Context->hasPluginParam('title')
                     ? $this->Context->getPluginParam('title')
                     : '';
-        $sStyle = $this->Context->getPluginParam('style')
+        $sStyle = $this->Context->hasPluginParam('style')
                     ? $this->Context->getPluginParam('style')
                     : '';
 

File [changed]: class.CustomRssViewer.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomRssViewer.php?r1=1.9&r2=1.10
Delta lines:  +6 -6
-------------------
--- class.CustomRssViewer.php	26 Aug 2005 15:00:06 -0000	1.9
+++ class.CustomRssViewer.php	12 Sep 2005 22:48:00 -0000	1.10
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomRssViewer.php,v 1.9 2005/08/26 15:00:06 dgorski Exp $
+ * $Id: class.CustomRssViewer.php,v 1.10 2005/09/12 22:48:00 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -37,7 +37,7 @@
  * @author      Kai Schröder, <[email protected]>
  * @copyright   (C) Kai Schröder {@link http://kai.cowiki.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.9 $
+ * @version     $Revision: 1.10 $
  *
  */
 
@@ -89,19 +89,19 @@
 
         // Set plugin parameters, if passed by a plugin call, or set
         // defaults
-        $sSrc = $this->Context->getPluginParam('src')
+        $sSrc = $this->Context->hasPluginParam('src')
                     ? $this->Context->getPluginParam('src')
                     : '';
 
-        $sStyle = $this->Context->getPluginParam('style')
+        $sStyle = $this->Context->hasPluginParam('style')
                     ? $this->Context->getPluginParam('style')
                     : '';
 
-        $nExpire = $this->Context->getPluginParam('expires')
+        $nExpire = $this->Context->hasPluginParam('expires')
                     ? (int)abs($this->Context->getPluginParam('expires'))
                     : 3600;
 
-        $sEncode = $this->Context->getPluginParam('encode')
+        $sEncode = $this->Context->hasPluginParam('encode')
                     ? $this->Context->getPluginParam('encode')
                     : 'iso-8859-1';
 

File [changed]: class.CustomReferrer.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomReferrer.php?r1=1.13&r2=1.14
Delta lines:  +6 -6
-------------------
--- class.CustomReferrer.php	16 Jan 2005 23:32:09 -0000	1.13
+++ class.CustomReferrer.php	12 Sep 2005 22:48:01 -0000	1.14
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomReferrer.php,v 1.13 2005/01/16 23:32:09 dgorski Exp $
+ * $Id: class.CustomReferrer.php,v 1.14 2005/09/12 22:48:01 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -38,7 +38,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.13 $
+ * @version     $Revision: 1.14 $
  *
  */
 
@@ -106,16 +106,16 @@
 
         // Set plugin parameters, if passed by a plugin call, or set
         // defaults
-        $sTitle = $this->Context->getPluginParam('title')
+        $sTitle = $this->Context->hasPluginParam('title')
                     ? $this->Context->getPluginParam('title')
                     : 'Referrers';
-        $sStyle = $this->Context->getPluginParam('style')
+        $sStyle = $this->Context->hasPluginParam('style')
                     ? $this->Context->getPluginParam('style')
                     : '';
-        $nLimit = $this->Context->getPluginParam('limit')
+        $nLimit = $this->Context->hasPluginParam('limit')
                     ? abs($this->Context->getPluginParam('limit'))
                     : 10;
-        $nCutOff = $this->Context->getPluginParam('cutoff')
+        $nCutOff = $this->Context->hasPluginParam('cutoff')
                     ? abs($this->Context->getPluginParam('cutoff'))
                     : 20;
 

File [changed]: class.CustomPluginInfo.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomPluginInfo.php?r1=1.15&r2=1.16
Delta lines:  +5 -5
-------------------
--- class.CustomPluginInfo.php	27 Feb 2005 03:32:46 -0000	1.15
+++ class.CustomPluginInfo.php	12 Sep 2005 22:48:01 -0000	1.16
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomPluginInfo.php,v 1.15 2005/02/27 03:32:46 nibra Exp $
+ * $Id: class.CustomPluginInfo.php,v 1.16 2005/09/12 22:48:01 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -28,7 +28,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.15 $
+ * @version     $Revision: 1.16 $
  *
  */
 
@@ -89,7 +89,7 @@
 
         // ----------------------------------------------------------------
 
-        $sSinglePlugin = $this->Context->getPluginParam('plugin')
+        $sSinglePlugin = $this->Context->hasPluginParam('plugin')
                        ? $this->Context->getPluginParam('plugin')
                        : '';
         $sSinglePlugin = strtolower($sSinglePlugin);

File [changed]: class.CustomEmbed.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomEmbed.php?r1=1.19&r2=1.20
Delta lines:  +7 -7
-------------------
--- class.CustomEmbed.php	31 Jan 2005 02:05:43 -0000	1.19
+++ class.CustomEmbed.php	12 Sep 2005 22:48:01 -0000	1.20
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomEmbed.php,v 1.19 2005/01/31 02:05:43 dgorski Exp $
+ * $Id: class.CustomEmbed.php,v 1.20 2005/09/12 22:48:01 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -34,7 +34,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.19 $
+ * @version     $Revision: 1.20 $
  *
  */
 
@@ -84,19 +84,19 @@
 
         // Get plugin parameters
         $sSrc   = $this->Context->getPluginParam('src');
-        $sStyle = $this->Context->getPluginParam('style')
+        $sStyle = $this->Context->hasPluginParam('style')
                       ? $this->Context->getPluginParam('style')
                       : '';
-        $sAlt   = $this->Context->getPluginParam('alt')
+        $sAlt   = $this->Context->hasPluginParam('alt')
                       ? $this->Context->getPluginParam('alt')
                       : '';
-        $sWidth = $this->Context->getPluginParam('width')
+        $sWidth = $this->Context->hasPluginParam('width')
                       ? $this->Context->getPluginParam('width')
                       : '';
-        $sHeight = $this->Context->getPluginParam('height')
+        $sHeight = $this->Context->hasPluginParam('height')
                       ? $this->Context->getPluginParam('height')
                       : '';
-        $sAlign = $this->Context->getPluginParam('align')
+        $sAlign = $this->Context->hasPluginParam('align')
                       ? $this->Context->getPluginParam('align')
                       : '';
 

File [changed]: class.CustomDonatePayPal.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomDonatePayPal.php?r1=1.11&r2=1.12
Delta lines:  +5 -5
-------------------
--- class.CustomDonatePayPal.php	9 Feb 2005 19:09:48 -0000	1.11
+++ class.CustomDonatePayPal.php	12 Sep 2005 22:48:01 -0000	1.12
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomDonatePayPal.php,v 1.11 2005/02/09 19:09:48 paulha Exp $
+ * $Id: class.CustomDonatePayPal.php,v 1.12 2005/09/12 22:48:01 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -29,7 +29,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.11 $
+ * @version     $Revision: 1.12 $
  *
  */
 
@@ -82,7 +82,7 @@
 
         // Set plugin parameters, if passed by a plugin call, or set
         // defaults
-        $sStyle = $this->Context->getPluginParam('style')
+        $sStyle = $this->Context->hasPluginParam('style')
                 ? $this->Context->getPluginParam('style')
                 : '';
 

File [changed]: class.CustomDocRecent.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomDocRecent.php?r1=1.32&r2=1.33
Delta lines:  +6 -6
-------------------
--- class.CustomDocRecent.php	28 Feb 2005 01:13:57 -0000	1.32
+++ class.CustomDocRecent.php	12 Sep 2005 22:48:01 -0000	1.33
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomDocRecent.php,v 1.32 2005/02/28 01:13:57 dgorski Exp $
+ * $Id: class.CustomDocRecent.php,v 1.33 2005/09/12 22:48:01 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -37,7 +37,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.32 $
+ * @version     $Revision: 1.33 $
  *
  */
 
@@ -116,16 +116,16 @@
 
         // Set plugin parameters, if passed by a plugin call, or set
         // defaults
-        $sTitle = $this->Context->getPluginParam('title')
+        $sTitle = $this->Context->hasPluginParam('title')
                     ? $this->Context->getPluginParam('title')
                     : '';
-        $sStyle = $this->Context->getPluginParam('style')
+        $sStyle = $this->Context->hasPluginParam('style')
                     ? $this->Context->getPluginParam('style')
                     : '';
-        $nLimit = $this->Context->getPluginParam('limit')
+        $nLimit = $this->Context->hasPluginParam('limit')
                     ? abs($this->Context->getPluginParam('limit'))
                     : 15;
-        $nCutOff = $this->Context->getPluginParam('cutoff')
+        $nCutOff = $this->Context->hasPluginParam('cutoff')
                     ? abs($this->Context->getPluginParam('cutoff'))
                     : 30;
 

File [changed]: class.CustomComRecent.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomComRecent.php?r1=1.9&r2=1.10
Delta lines:  +6 -6
-------------------
--- class.CustomComRecent.php	19 Feb 2005 19:55:06 -0000	1.9
+++ class.CustomComRecent.php	12 Sep 2005 22:48:01 -0000	1.10
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomComRecent.php,v 1.9 2005/02/19 19:55:06 dgorski Exp $
+ * $Id: class.CustomComRecent.php,v 1.10 2005/09/12 22:48:01 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -36,7 +36,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.9 $
+ * @version     $Revision: 1.10 $
  *
  */
 
@@ -106,16 +106,16 @@
 
         // Set plugin parameters, if passed by a plugin call, or set
         // defaults
-        $sTitle = $this->Context->getPluginParam('title')
+        $sTitle = $this->Context->hasPluginParam('title')
                     ? $this->Context->getPluginParam('title')
                     : '';
-        $sStyle = $this->Context->getPluginParam('style')
+        $sStyle = $this->Context->hasPluginParam('style')
                     ? $this->Context->getPluginParam('style')
                     : '';
-        $nLimit = $this->Context->getPluginParam('limit')
+        $nLimit = $this->Context->hasPluginParam('limit')
                     ? abs($this->Context->getPluginParam('limit'))
                     : 10;
-        $nCutOff = $this->Context->getPluginParam('cutoff')
+        $nCutOff = $this->Context->hasPluginParam('cutoff')
                     ? abs($this->Context->getPluginParam('cutoff'))
                     : 30;
 

File [changed]: class.CustomAutoIndex.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/plugin/class.CustomAutoIndex.php?r1=1.23&r2=1.24
Delta lines:  +7 -7
-------------------
--- class.CustomAutoIndex.php	19 Mar 2005 10:40:01 -0000	1.23
+++ class.CustomAutoIndex.php	12 Sep 2005 22:48:01 -0000	1.24
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.CustomAutoIndex.php,v 1.23 2005/03/19 10:40:01 kscr Exp $
+ * $Id: class.CustomAutoIndex.php,v 1.24 2005/09/12 22:48:01 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -47,7 +47,7 @@
  * @author      Kai Schröder, <[email protected]>
  * @copyright   (C) Kai Schröder, {@link http://kai.cowiki.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.23 $
+ * @version     $Revision: 1.24 $
  *
  */
 
@@ -119,7 +119,7 @@
      */
     private function getParameters() {
 
-        $this->sParamDirectory = $this->Context->getPluginParam('dir')
+        $this->sParamDirectory = $this->Context->hasPluginParam('dir')
             ? $this->Context->getPluginParam('dir') : '.';
 
         switch (strtolower($this->Request->get('autoindexorder'))) {
@@ -174,19 +174,19 @@
             break;
         }
 
-        $this->sParamTitle = $this->Context->getPluginParam('title')
+        $this->sParamTitle = $this->Context->hasPluginParam('title')
             ? $this->Context->getPluginParam('title')
             : '';
 
-        $this->sParamTableStyle = $this->Context->getPluginParam('style')
+        $this->sParamTableStyle = $this->Context->hasPluginParam('style')
             ? $this->Context->getPluginParam('style')
             : '';
 
-        $this->sParamUriPrefix = $this->Context->getPluginParam('uri')
+        $this->sParamUriPrefix = $this->Context->hasPluginParam('uri')
             ? $this->Context->getPluginParam('uri')
             : '';
 
-        $this->nParamCutOff = $this->Context->getPluginParam('cutoff')
+        $this->nParamCutOff = $this->Context->hasPluginParam('cutoff')
             ? abs($this->Context->getPluginParam('cutoff'))
             : 40;