Completed
Branch master (0881bb)
by Michael
04:14
created
xoops_trust_path/libs/altsys/class/altsysUtils.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -1,6 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 class altsysUtils
3 3
 {
4
+    /**
5
+     * @param string $name
6
+     */
4 7
     public static function getDelegateCallbackClassNames($name, $doRegist = true)
5 8
     {
6 9
         $names = array();
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/D3LanguageManager.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
 }
36 36
 
37 37
 
38
+    /**
39
+     * @param string $resource
40
+     */
38 41
     public function read($resource, $mydirname, $mytrustdirname = null, $read_once = true)
39 42
     {
40 43
         $d3file = XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/mytrustdirname.php' ;
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/d3utilities.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -261,6 +261,9 @@
 block discarded – undo
261 261
 			</form>\n" ;
262 262
     }
263 263
 
264
+    /**
265
+     * @param string $name
266
+     */
264 267
     public function get_select($name, $options, $current_value)
265 268
     {
266 269
         $ret = "<select name='".htmlspecialchars($name, ENT_QUOTES)."'>\n" ;
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/MyBlocksAdmin.class.php 2 patches
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -488,6 +488,12 @@  discard block
 block discarded – undo
488 488
     }
489 489
 
490 490
 
491
+    /**
492
+     * @param integer $bside
493
+     * @param integer $bweight
494
+     * @param integer $bvisible
495
+     * @param integer $bcachetime
496
+     */
491 497
     public function update_block($bid, $bside, $bweight, $bvisible, $btitle, $bcontent, $bctype, $bcachetime, $options=array())
492 498
     {
493 499
         global $xoopsConfig;
@@ -646,6 +652,9 @@  discard block
 block discarded – undo
646 652
     }
647 653
 
648 654
 
655
+    /**
656
+     * @param integer $bid
657
+     */
649 658
     public function do_delete($bid)
650 659
     {
651 660
         $bid = intval($bid) ;
@@ -671,6 +680,9 @@  discard block
 block discarded – undo
671 680
     }
672 681
 
673 682
 //HACK add by domifara
683
+/**
684
+ * @param integer $bid
685
+ */
674 686
 public function do_deleteBlockReadGroupPerm($bid)
675 687
 {
676 688
     $bid = intval($bid) ;
@@ -679,6 +691,9 @@  discard block
 block discarded – undo
679 691
     $this->db->query($sql) ;
680 692
 }
681 693
 
694
+    /**
695
+     * @param integer $bid
696
+     */
682 697
     public function form_delete($bid)
683 698
     {
684 699
         $bid = intval($bid) ;
@@ -708,6 +723,9 @@  discard block
 block discarded – undo
708 723
     }
709 724
 
710 725
 
726
+    /**
727
+     * @param integer $bid
728
+     */
711 729
     public function do_clone($bid)
712 730
     {
713 731
         $bid = intval($bid) ;
@@ -786,6 +804,9 @@  discard block
 block discarded – undo
786 804
     }
787 805
 
788 806
 
807
+    /**
808
+     * @param integer $bid
809
+     */
789 810
     public function do_edit($bid)
790 811
     {
791 812
         $bid = intval($bid) ;
@@ -829,6 +850,9 @@  discard block
 block discarded – undo
829 850
     }
830 851
 
831 852
 
853
+    /**
854
+     * @param integer $bid
855
+     */
832 856
     public function form_edit($bid, $mode = 'edit')
833 857
     {
834 858
         $bid = intval($bid) ;
Please login to merge, or discard this patch.
Switch Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -308,30 +308,30 @@  discard block
 block discarded – undo
308 308
         $scoln = "disabled";
309 309
     } else {
310 310
         switch ($side) {
311
-        case XOOPS_SIDEBLOCK_LEFT :
312
-            $ssel0 = " checked='checked'";
313
-            $scol0 = "selected";
314
-            break ;
315
-        case XOOPS_SIDEBLOCK_RIGHT :
316
-            $ssel1 = " checked='checked'";
317
-            $scol1 = "selected";
318
-            break ;
319
-        case XOOPS_CENTERBLOCK_LEFT :
320
-            $ssel2 = " checked='checked'";
321
-            $scol2 = "selected";
322
-            break ;
323
-        case XOOPS_CENTERBLOCK_RIGHT :
324
-            $ssel4 = " checked='checked'";
325
-            $scol4 = "selected";
326
-            break ;
327
-        case XOOPS_CENTERBLOCK_CENTER :
328
-            $ssel3 = " checked='checked'";
329
-            $scol3 = "selected";
330
-            break ;
331
-        default :
332
-            $value4extra_side = $side ;
333
-            $stextbox = "selected" ;
334
-            break ;
311
+            case XOOPS_SIDEBLOCK_LEFT :
312
+                $ssel0 = " checked='checked'";
313
+                $scol0 = "selected";
314
+                break ;
315
+            case XOOPS_SIDEBLOCK_RIGHT :
316
+                $ssel1 = " checked='checked'";
317
+                $scol1 = "selected";
318
+                break ;
319
+            case XOOPS_CENTERBLOCK_LEFT :
320
+                $ssel2 = " checked='checked'";
321
+                $scol2 = "selected";
322
+                break ;
323
+            case XOOPS_CENTERBLOCK_RIGHT :
324
+                $ssel4 = " checked='checked'";
325
+                $scol4 = "selected";
326
+                break ;
327
+            case XOOPS_CENTERBLOCK_CENTER :
328
+                $ssel3 = " checked='checked'";
329
+                $scol3 = "selected";
330
+                break ;
331
+            default :
332
+                $value4extra_side = $side ;
333
+                $stextbox = "selected" ;
334
+                break ;
335 335
     }
336 336
     }
337 337
 
@@ -851,31 +851,31 @@  discard block
 block discarded – undo
851 851
         }
852 852
 
853 853
         switch ($mode) {
854
-        case 'clone' :
855
-            $form_title = _MD_A_MYBLOCKSADMIN_CLONEFORM ;
856
-            $button_value = _MD_A_MYBLOCKSADMIN_BTN_CLONE ;
857
-            $next_op = 'clone_ok' ;
858
-            // breadcrumbs
859
-            $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ;
860
-            $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_CLONEFORM) ;
861
-            break ;
862
-        case 'new' :
863
-            $form_title = _MD_A_MYBLOCKSADMIN_NEWFORM ;
864
-            $button_value = _MD_A_MYBLOCKSADMIN_BTN_NEW ;
865
-            $next_op = 'new_ok' ;
866
-            // breadcrumbs
867
-            $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ;
868
-            $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_NEWFORM) ;
869
-            break ;
870
-        case 'edit' :
871
-        default :
872
-            $form_title = _MD_A_MYBLOCKSADMIN_EDITFORM ;
873
-            $button_value = _MD_A_MYBLOCKSADMIN_BTN_EDIT ;
874
-            $next_op = 'edit_ok' ;
875
-            // breadcrumbs
876
-            $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ;
877
-            $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_EDITFORM) ;
878
-            break ;
854
+            case 'clone' :
855
+                $form_title = _MD_A_MYBLOCKSADMIN_CLONEFORM ;
856
+                $button_value = _MD_A_MYBLOCKSADMIN_BTN_CLONE ;
857
+                $next_op = 'clone_ok' ;
858
+                // breadcrumbs
859
+                $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ;
860
+                $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_CLONEFORM) ;
861
+                break ;
862
+            case 'new' :
863
+                $form_title = _MD_A_MYBLOCKSADMIN_NEWFORM ;
864
+                $button_value = _MD_A_MYBLOCKSADMIN_BTN_NEW ;
865
+                $next_op = 'new_ok' ;
866
+                // breadcrumbs
867
+                $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ;
868
+                $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_NEWFORM) ;
869
+                break ;
870
+            case 'edit' :
871
+            default :
872
+                $form_title = _MD_A_MYBLOCKSADMIN_EDITFORM ;
873
+                $button_value = _MD_A_MYBLOCKSADMIN_BTN_EDIT ;
874
+                $next_op = 'edit_ok' ;
875
+                // breadcrumbs
876
+                $breadcrumbsObj =& AltsysBreadcrumbs::getInstance() ;
877
+                $breadcrumbsObj->appendPath('', _MD_A_MYBLOCKSADMIN_EDITFORM) ;
878
+                break ;
879 879
     }
880 880
 
881 881
         $is_custom = in_array($block->getVar('block_type'), array( 'C', 'E' )) ? true : false ;
@@ -1051,23 +1051,23 @@  discard block
 block discarded – undo
1051 1051
     {
1052 1052
         $bid = intval(@$_GET['bid']) ;
1053 1053
         switch (@$_GET['op']) {
1054
-        case 'clone' :
1055
-            $this->form_edit($bid, 'clone') ;
1056
-            break ;
1057
-        case 'new' :
1058
-        case 'edit' :
1059
-            $this->form_edit($bid, 'edit') ;
1060
-            break ;
1061
-        case 'delete' :
1062
-            $this->form_delete($bid) ;
1063
-            break ;
1064
-        case 'list' :
1065
-        default :
1066
-            // the first form (blocks)
1067
-            $this->list_blocks() ;
1068
-            // the second form (groups)
1069
-            $this->list_groups() ;
1070
-            break ;
1054
+            case 'clone' :
1055
+                $this->form_edit($bid, 'clone') ;
1056
+                break ;
1057
+            case 'new' :
1058
+            case 'edit' :
1059
+                $this->form_edit($bid, 'edit') ;
1060
+                break ;
1061
+            case 'delete' :
1062
+                $this->form_delete($bid) ;
1063
+                break ;
1064
+            case 'list' :
1065
+            default :
1066
+                // the first form (blocks)
1067
+                $this->list_blocks() ;
1068
+                // the second form (groups)
1069
+                $this->list_groups() ;
1070
+                break ;
1071 1071
     }
1072 1072
     }
1073 1073
 }
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/MyBlocksAdminForICMS.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@
 block discarded – undo
92 92
 
93 93
 
94 94
 // private
95
+/**
96
+ * @param integer $target_side
97
+ */
95 98
 public function renderRadio4BlockPosition($target_side, $block_data)
96 99
 {
97 100
     $bid = intval($block_data['bid']) ;
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/MyBlocksAdminForX20S.class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
 
70 70
 
71 71
 // private
72
+/**
73
+ * @param integer $target_side
74
+ */
72 75
 public function renderRadio4BlockPosition($target_side, $block_data)
73 76
 {
74 77
     $bid = intval($block_data['bid']) ;
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/class/SetupAltsysLangMgr.class.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -47,6 +47,10 @@
 block discarded – undo
47 47
         parent::prepare();
48 48
     }
49 49
 
50
+    /**
51
+     * @param string $dirname
52
+     * @param string $fileBodyName
53
+     */
50 54
     public function _loadLanguage($dirname, $fileBodyName)
51 55
     {
52 56
         // read/check once (selected_theme)/language/(lang).php
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/altsys_functions.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -103,6 +103,12 @@
 block discarded – undo
103 103
 }
104 104
 
105 105
 
106
+/**
107
+ * @param integer $mid
108
+ * @param integer $coretype
109
+ *
110
+ * @return string
111
+ */
106 112
 function altsys_get_link2modpreferences($mid, $coretype)
107 113
 {
108 114
     switch ($coretype) {
Please login to merge, or discard this patch.
xoops_trust_path/libs/altsys/include/Archive_Zip.php 1 patch
Doc Comments   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
     */
137 137
 //HACK by domifara
138 138
 //	function Archive_Zip($p_zipname)
139
+    /**
140
+     * @param string $p_zipname
141
+     */
139 142
     public function __construct($p_zipname)
140 143
     {
141 144
 
@@ -177,7 +180,7 @@  discard block
 block discarded – undo
177 180
     * @param  mixed  $p_filelist  The list of the files or folders to add.
178 181
     *                             It can be a string with filenames separated
179 182
     *                             by a comma, or an array of filenames.
180
-    * @param  mixed  $p_params  An array of variable parameters and values.
183
+    * @param  integer  $p_params  An array of variable parameters and values.
181 184
     * @return mixed An array of file description on success,
182 185
     *               an error code on error
183 186
     */
@@ -248,7 +251,7 @@  discard block
 block discarded – undo
248 251
     * @param    mixed  $p_filelist  The list of the files or folders to add.
249 252
     *                               It can be a string with filenames separated
250 253
     *                               by a comma, or an array of filenames.
251
-    * @param    mixed  $p_params  An array of variable parameters and values.
254
+    * @param    integer  $p_params  An array of variable parameters and values.
252 255
     * @return mixed An array of file description on success,
253 256
     *               0 on an unrecoverable failure, an error code is logged.
254 257
     */
@@ -399,7 +402,7 @@  discard block
 block discarded – undo
399 402
     *                            each entry extraction.
400 403
     *
401 404
     * @access public
402
-    * @param    mixed  $p_params  An array of variable parameters and values.
405
+    * @param    integer  $p_params  An array of variable parameters and values.
403 406
     * @return mixed An array of file description on success,
404 407
     *               0 on an unrecoverable failure, an error code is logged.
405 408
     */
@@ -514,7 +517,6 @@  discard block
 block discarded – undo
514 517
     *    status : not_exist, ok
515 518
     *
516 519
     * @access public
517
-    * @param    mixed  $p_params  {Description}
518 520
     * @return mixed An array with the global properties or 0 on error.
519 521
     */
520 522
     public function properties()
@@ -1000,6 +1002,7 @@  discard block
 block discarded – undo
1000 1002
   *
1001 1003
   * { Description }
1002 1004
   *
1005
+  * @param string $p_mode
1003 1006
   */
1004 1007
   public function _openFd($p_mode)
1005 1008
   {
@@ -1571,6 +1574,7 @@  discard block
 block discarded – undo
1571 1574
   *
1572 1575
   * { Description }
1573 1576
   *
1577
+  * @param string $p_comment
1574 1578
   */
1575 1579
   public function _writeCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment)
1576 1580
   {
@@ -3148,8 +3152,6 @@  discard block
 block discarded – undo
3148 3152
   *
3149 3153
   * { Description }
3150 3154
   *
3151
-  * @param integer $p_error_code
3152
-  * @param string $p_error_string
3153 3155
   */
3154 3156
   public function _check_parameters(&$p_params, $p_default)
3155 3157
   {
@@ -3379,6 +3381,8 @@  discard block
 block discarded – undo
3379 3381
   * { Description }
3380 3382
   *
3381 3383
   * @param integer $p_mode
3384
+  * @param integer $p_src
3385
+  * @param integer $p_dest
3382 3386
   */
3383 3387
   public function _tool_CopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
3384 3388
   {
@@ -3440,6 +3444,8 @@  discard block
 block discarded – undo
3440 3444
   *
3441 3445
   * { Description }
3442 3446
   *
3447
+  * @param string $p_src
3448
+  * @param string $p_dest
3443 3449
   */
3444 3450
   public function _tool_Rename($p_src, $p_dest)
3445 3451
   {
Please login to merge, or discard this patch.