@@ -237,7 +237,7 @@ |
||
| 237 | 237 | * Creates a random number with a specified number of $digits |
| 238 | 238 | * |
| 239 | 239 | * @param int $digits number of digits |
| 240 | - * @return return int random number |
|
| 240 | + * @return string int random number |
|
| 241 | 241 | * @author xHelp Team |
| 242 | 242 | * |
| 243 | 243 | * @access public |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | /** |
| 179 | - * @param $key |
|
| 179 | + * @param string $key |
|
| 180 | 180 | * @param $data_type |
| 181 | 181 | * @param bool $itemName |
| 182 | 182 | * @param string $form_caption |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * @param bool $required set to TRUE if this variable needs to have a value set before storing the object in the table |
| 213 | 213 | * @param string $form_caption caption of this variable in a {@link SmartobjectForm} and title of a column in a {@link SmartObjectTable} |
| 214 | 214 | * @param string $form_dsc description of this variable in a {@link SmartobjectForm} |
| 215 | - * @param mixed $value default value of this variable |
|
| 215 | + * @param string|false $value default value of this variable |
|
| 216 | 216 | */ |
| 217 | 217 | public function quickInitVar( |
| 218 | 218 | $key, |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | /** |
| 230 | - * @param $varname |
|
| 230 | + * @param string $varname |
|
| 231 | 231 | * @param bool $displayOnForm |
| 232 | 232 | * @param string $default |
| 233 | 233 | */ |
@@ -489,7 +489,7 @@ discard block |
||
| 489 | 489 | /** |
| 490 | 490 | * add an error |
| 491 | 491 | * |
| 492 | - * @param $err_str |
|
| 492 | + * @param string $err_str |
|
| 493 | 493 | * @param bool $prefix |
| 494 | 494 | * @internal param string $value error to add |
| 495 | 495 | * @access public |
@@ -751,8 +751,8 @@ discard block |
||
| 751 | 751 | |
| 752 | 752 | /** |
| 753 | 753 | * @param $key |
| 754 | - * @param $info |
|
| 755 | - * @param $value |
|
| 754 | + * @param string $info |
|
| 755 | + * @param boolean $value |
|
| 756 | 756 | */ |
| 757 | 757 | public function setVarInfo($key, $info, $value) |
| 758 | 758 | { |
@@ -760,7 +760,7 @@ discard block |
||
| 760 | 760 | } |
| 761 | 761 | |
| 762 | 762 | /** |
| 763 | - * @param $key |
|
| 763 | + * @param string $key |
|
| 764 | 764 | * @param bool $editor |
| 765 | 765 | * @return string |
| 766 | 766 | */ |
@@ -939,7 +939,7 @@ discard block |
||
| 939 | 939 | * @access public |
| 940 | 940 | * @param string $key key of the object's variable to be returned |
| 941 | 941 | * @param string $format format to use for the output |
| 942 | - * @return mixed formatted value of the variable |
|
| 942 | + * @return string formatted value of the variable |
|
| 943 | 943 | */ |
| 944 | 944 | public function getVar($key, $format = 's') |
| 945 | 945 | { |
@@ -1249,7 +1249,7 @@ discard block |
||
| 1249 | 1249 | } |
| 1250 | 1250 | |
| 1251 | 1251 | /** |
| 1252 | - * @param $key |
|
| 1252 | + * @param string $key |
|
| 1253 | 1253 | */ |
| 1254 | 1254 | public function hideFieldFromForm($key) |
| 1255 | 1255 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | 191 | * @param $criteria |
| 192 | - * @param $perm_name |
|
| 192 | + * @param boolean $perm_name |
|
| 193 | 193 | * @return bool |
| 194 | 194 | */ |
| 195 | 195 | public function setGrantedObjectsCriteria(&$criteria, $perm_name) |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /** |
| 386 | - * @param $sql |
|
| 386 | + * @param string $sql |
|
| 387 | 387 | * @param $criteria |
| 388 | 388 | * @param bool $force |
| 389 | 389 | * @param bool $debug |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * SmartObjectColumn constructor. |
| 34 | - * @param $keyname |
|
| 34 | + * @param string $keyname |
|
| 35 | 35 | * @param string $align |
| 36 | 36 | * @param bool $width |
| 37 | 37 | * @param bool $customMethodForValue |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * @param $columnObj |
|
| 196 | + * @param SmartObjectColumn $columnObj |
|
| 197 | 197 | */ |
| 198 | 198 | public function addColumn($columnObj) |
| 199 | 199 | { |
@@ -201,8 +201,8 @@ discard block |
||
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | - * @param $name |
|
| 205 | - * @param $location |
|
| 204 | + * @param string $name |
|
| 205 | + * @param string $location |
|
| 206 | 206 | * @param $value |
| 207 | 207 | */ |
| 208 | 208 | public function addIntroButton($name, $location, $value) |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param $javascript |
| 30 | - * @return mixed|string |
|
| 30 | + * @return string |
|
| 31 | 31 | */ |
| 32 | 32 | public function escape($javascript) |
| 33 | 33 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param $name |
| 51 | - * @param $function |
|
| 51 | + * @param string $function |
|
| 52 | 52 | * @param null $html_options |
| 53 | 53 | * @return string |
| 54 | 54 | */ |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | - * @param $klass |
|
| 215 | + * @param string $klass |
|
| 216 | 216 | * @param $name |
| 217 | 217 | * @param null $options |
| 218 | 218 | * @return string |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | - * @param $variable |
|
| 314 | + * @param string $variable |
|
| 315 | 315 | * @param $value |
| 316 | 316 | * @return string |
| 317 | 317 | */ |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | } |
| 322 | 322 | |
| 323 | 323 | /** |
| 324 | - * @param $function |
|
| 324 | + * @param string $function |
|
| 325 | 325 | * @param null $args |
| 326 | 326 | * @return string |
| 327 | 327 | */ |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param $javascript |
| 30 | - * @return mixed|string |
|
| 30 | + * @return string |
|
| 31 | 31 | */ |
| 32 | 32 | public function escape($javascript) |
| 33 | 33 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param $name |
| 51 | - * @param $function |
|
| 51 | + * @param string $function |
|
| 52 | 52 | * @param null $html_options |
| 53 | 53 | * @return string |
| 54 | 54 | */ |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | - * @param $klass |
|
| 215 | + * @param string $klass |
|
| 216 | 216 | * @param $name |
| 217 | 217 | * @param null $options |
| 218 | 218 | * @return string |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | - * @param $variable |
|
| 314 | + * @param string $variable |
|
| 315 | 315 | * @param $value |
| 316 | 316 | * @return string |
| 317 | 317 | */ |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | } |
| 322 | 322 | |
| 323 | 323 | /** |
| 324 | - * @param $function |
|
| 324 | + * @param string $function |
|
| 325 | 325 | * @param null $args |
| 326 | 326 | * @return string |
| 327 | 327 | */ |
@@ -57,66 +57,66 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | switch ($op) { |
| 60 | - case 'mod': |
|
| 60 | + case 'mod': |
|
| 61 | 61 | |
| 62 | - $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
| 62 | + $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
| 63 | 63 | |
| 64 | - smart_xoops_cp_header(); |
|
| 65 | - $adminObject->displayNavigation(basename(__FILE__)); |
|
| 64 | + smart_xoops_cp_header(); |
|
| 65 | + $adminObject->displayNavigation(basename(__FILE__)); |
|
| 66 | 66 | |
| 67 | - editclass(true, $adsenseid); |
|
| 68 | - break; |
|
| 67 | + editclass(true, $adsenseid); |
|
| 68 | + break; |
|
| 69 | 69 | |
| 70 | - case 'clone': |
|
| 70 | + case 'clone': |
|
| 71 | 71 | |
| 72 | - $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
| 72 | + $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0; |
|
| 73 | 73 | |
| 74 | - smart_xoops_cp_header(); |
|
| 75 | - $adminObject->displayNavigation(basename(__FILE__)); |
|
| 74 | + smart_xoops_cp_header(); |
|
| 75 | + $adminObject->displayNavigation(basename(__FILE__)); |
|
| 76 | 76 | |
| 77 | - editclass(true, $adsenseid, true); |
|
| 78 | - break; |
|
| 77 | + editclass(true, $adsenseid, true); |
|
| 78 | + break; |
|
| 79 | 79 | |
| 80 | - case 'addadsense': |
|
| 81 | - if (@require_once SMARTOBJECT_ROOT_PATH . 'include/captcha/captcha.php') { |
|
| 82 | - $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
| 83 | - if (!$xoopsCaptcha->verify()) { |
|
| 84 | - redirect_header('javascript:history.go(-1);', 3, $xoopsCaptcha->getMessage()); |
|
| 85 | - exit; |
|
| 86 | - } |
|
| 87 | - } |
|
| 88 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 89 | - $controller = new SmartObjectController($smartobjectAdsenseHandler); |
|
| 90 | - $controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED, _AM_SOBJECT_ADSENSES_MODIFIED); |
|
| 91 | - break; |
|
| 80 | + case 'addadsense': |
|
| 81 | + if (@require_once SMARTOBJECT_ROOT_PATH . 'include/captcha/captcha.php') { |
|
| 82 | + $xoopsCaptcha = XoopsCaptcha::getInstance(); |
|
| 83 | + if (!$xoopsCaptcha->verify()) { |
|
| 84 | + redirect_header('javascript:history.go(-1);', 3, $xoopsCaptcha->getMessage()); |
|
| 85 | + exit; |
|
| 86 | + } |
|
| 87 | + } |
|
| 88 | + require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 89 | + $controller = new SmartObjectController($smartobjectAdsenseHandler); |
|
| 90 | + $controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED, _AM_SOBJECT_ADSENSES_MODIFIED); |
|
| 91 | + break; |
|
| 92 | 92 | |
| 93 | - case 'del': |
|
| 93 | + case 'del': |
|
| 94 | 94 | |
| 95 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 96 | - $controller = new SmartObjectController($smartobjectAdsenseHandler); |
|
| 97 | - $controller->handleObjectDeletion(); |
|
| 95 | + require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 96 | + $controller = new SmartObjectController($smartobjectAdsenseHandler); |
|
| 97 | + $controller->handleObjectDeletion(); |
|
| 98 | 98 | |
| 99 | - break; |
|
| 99 | + break; |
|
| 100 | 100 | |
| 101 | - default: |
|
| 101 | + default: |
|
| 102 | 102 | |
| 103 | - smart_xoops_cp_header(); |
|
| 104 | - $adminObject->displayNavigation(basename(__FILE__)); |
|
| 103 | + smart_xoops_cp_header(); |
|
| 104 | + $adminObject->displayNavigation(basename(__FILE__)); |
|
| 105 | 105 | |
| 106 | - //smart_adminMenu(3, _AM_SOBJECT_ADSENSES); |
|
| 106 | + //smart_adminMenu(3, _AM_SOBJECT_ADSENSES); |
|
| 107 | 107 | |
| 108 | - smart_collapsableBar('createdadsenses', _AM_SOBJECT_ADSENSES, _AM_SOBJECT_ADSENSES_DSC); |
|
| 108 | + smart_collapsableBar('createdadsenses', _AM_SOBJECT_ADSENSES, _AM_SOBJECT_ADSENSES_DSC); |
|
| 109 | 109 | |
| 110 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 111 | - $objectTable = new SmartObjectTable($smartobjectAdsenseHandler); |
|
| 112 | - $objectTable->addColumn(new SmartObjectColumn('description', 'left')); |
|
| 113 | - $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_ADSENSE_TAG, 'center', 200, 'getXoopsCode')); |
|
| 110 | + require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 111 | + $objectTable = new SmartObjectTable($smartobjectAdsenseHandler); |
|
| 112 | + $objectTable->addColumn(new SmartObjectColumn('description', 'left')); |
|
| 113 | + $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_ADSENSE_TAG, 'center', 200, 'getXoopsCode')); |
|
| 114 | 114 | |
| 115 | - // $objectTable->addCustomAction('getCreateItemLink'); |
|
| 116 | - // $objectTable->addCustomAction('getCreateAttributLink'); |
|
| 115 | + // $objectTable->addCustomAction('getCreateItemLink'); |
|
| 116 | + // $objectTable->addCustomAction('getCreateAttributLink'); |
|
| 117 | 117 | |
| 118 | - $objectTable->addIntroButton('addadsense', 'adsense.php?op=mod', _AM_SOBJECT_ADSENSES_CREATE); |
|
| 119 | - /* |
|
| 118 | + $objectTable->addIntroButton('addadsense', 'adsense.php?op=mod', _AM_SOBJECT_ADSENSES_CREATE); |
|
| 119 | + /* |
|
| 120 | 120 | $criteria_upcoming = new CriteriaCompo(); |
| 121 | 121 | $criteria_upcoming->add(new Criteria('start_date', time(), '>')); |
| 122 | 122 | $objectTable->addFilter(_AM_SOBJECT_FILTER_UPCOMING, array( |
@@ -140,16 +140,16 @@ discard block |
||
| 140 | 140 | 'criteria' => $criteria_last30days |
| 141 | 141 | )); |
| 142 | 142 | */ |
| 143 | - $objectTable->addQuickSearch(array('title', 'summary', 'description')); |
|
| 144 | - $objectTable->addCustomAction('getCloneLink'); |
|
| 143 | + $objectTable->addQuickSearch(array('title', 'summary', 'description')); |
|
| 144 | + $objectTable->addCustomAction('getCloneLink'); |
|
| 145 | 145 | |
| 146 | - $objectTable->render(); |
|
| 146 | + $objectTable->render(); |
|
| 147 | 147 | |
| 148 | - echo '<br>'; |
|
| 149 | - smart_close_collapsable('createdadsenses'); |
|
| 150 | - echo '<br>'; |
|
| 148 | + echo '<br>'; |
|
| 149 | + smart_close_collapsable('createdadsenses'); |
|
| 150 | + echo '<br>'; |
|
| 151 | 151 | |
| 152 | - break; |
|
| 152 | + break; |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | //smart_modFooter(); |