@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | // maximum file size for uploaded files in bytes also used when uploading import files |
| 77 | 77 | // upload_maxsize default value = 3000000 |
| 78 | -$upload_maxsize = 52428800; // 50MB |
|
| 78 | +$upload_maxsize = 52428800; // 50MB |
|
| 79 | 79 | // flag to allow export functionality |
| 80 | 80 | // 'all' to allow anyone to use exports |
| 81 | 81 | // 'admin' to only allow admins to export |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | |
| 4 | 4 | //This file contains the commonly used variables |
| 5 | 5 | |
| 6 | -$parent_tab_info_array=array(1=>'My Home Page',2=>'Marketing',3=>'Sales',4=>'Support',5=>'Analytics',6=>'Inventory',7=>'Tools',8=>'Settings'); |
|
| 6 | +$parent_tab_info_array = array(1=>'My Home Page', 2=>'Marketing', 3=>'Sales', 4=>'Support', 5=>'Analytics', 6=>'Inventory', 7=>'Tools', 8=>'Settings'); |
|
| 7 | 7 | |
| 8 | 8 | |
| 9 | -$parent_child_tab_rel_array=array(1=>array(3,9,28,),2=>array(26,6,4,28,7,9,8,),3=>array(7,6,4,2,20,22,23,19,8,9,70,70,71,71,),4=>array(13,15,6,4,8,28,9,34,41,42,43,59,),5=>array(25,1,),6=>array(14,18,19,21,22,20,23,35,37,),7=>array(24,27,8,33,40,44,45,47,48,49,51,54,57,58,60,61,62,62,63,63,64,64,65,65,66,66,67,67,68,68,69,69,),8=>array(),); |
|
| 9 | +$parent_child_tab_rel_array = array(1=>array(3, 9, 28,), 2=>array(26, 6, 4, 28, 7, 9, 8,), 3=>array(7, 6, 4, 2, 20, 22, 23, 19, 8, 9, 70, 70, 71, 71,), 4=>array(13, 15, 6, 4, 8, 28, 9, 34, 41, 42, 43, 59,), 5=>array(25, 1,), 6=>array(14, 18, 19, 21, 22, 20, 23, 35, 37,), 7=>array(24, 27, 8, 33, 40, 44, 45, 47, 48, 49, 51, 54, 57, 58, 60, 61, 62, 62, 63, 63, 64, 64, 65, 65, 66, 66, 67, 67, 68, 68, 69, 69,), 8=>array(),); |
|
| 10 | 10 | |
| 11 | 11 | |
| 12 | 12 | |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | class VTEventConditionParserLexer_DFA9 extends DFA |
| 60 | 60 | { |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param VTEventConditionParserLexer $recognizer |
|
| 64 | + */ |
|
| 62 | 65 | public function __construct($recognizer) |
| 63 | 66 | { |
| 64 | 67 | global $VTEventConditionParserLexer_DFA9; |
@@ -108,6 +111,9 @@ discard block |
||
| 108 | 111 | // delegates |
| 109 | 112 | // delegators |
| 110 | 113 | |
| 114 | + /** |
|
| 115 | + * @param ANTLRStringStream $input |
|
| 116 | + */ |
|
| 111 | 117 | public function __construct($input, $state = null) |
| 112 | 118 | { |
| 113 | 119 | parent::__construct($input, $state); |
@@ -250,8 +250,10 @@ discard block |
||
| 250 | 250 | break; |
| 251 | 251 | |
| 252 | 252 | default : |
| 253 | - if ($cnt1 >= 1) |
|
| 254 | - break 2; //loop1; |
|
| 253 | + if ($cnt1 >= 1) { |
|
| 254 | + break 2; |
|
| 255 | + } |
|
| 256 | + //loop1; |
|
| 255 | 257 | $eee = new EarlyExitException(1, $this->input); |
| 256 | 258 | throw $eee; |
| 257 | 259 | } |
@@ -309,8 +311,10 @@ discard block |
||
| 309 | 311 | break; |
| 310 | 312 | |
| 311 | 313 | default : |
| 312 | - if ($cnt2 >= 1) |
|
| 313 | - break 2; //loop2; |
|
| 314 | + if ($cnt2 >= 1) { |
|
| 315 | + break 2; |
|
| 316 | + } |
|
| 317 | + //loop2; |
|
| 314 | 318 | $eee = new EarlyExitException(2, $this->input); |
| 315 | 319 | throw $eee; |
| 316 | 320 | } |
@@ -405,8 +409,10 @@ discard block |
||
| 405 | 409 | break; |
| 406 | 410 | |
| 407 | 411 | default : |
| 408 | - if ($cnt4 >= 1) |
|
| 409 | - break 2; //loop4; |
|
| 412 | + if ($cnt4 >= 1) { |
|
| 413 | + break 2; |
|
| 414 | + } |
|
| 415 | + //loop4; |
|
| 410 | 416 | $eee = new EarlyExitException(4, $this->input); |
| 411 | 417 | throw $eee; |
| 412 | 418 | } |
@@ -468,8 +474,10 @@ discard block |
||
| 468 | 474 | break; |
| 469 | 475 | |
| 470 | 476 | default : |
| 471 | - if ($cnt6 >= 1) |
|
| 472 | - break 2; //loop6; |
|
| 477 | + if ($cnt6 >= 1) { |
|
| 478 | + break 2; |
|
| 479 | + } |
|
| 480 | + //loop6; |
|
| 473 | 481 | $eee = new EarlyExitException(6, $this->input); |
| 474 | 482 | throw $eee; |
| 475 | 483 | } |
@@ -495,8 +503,10 @@ discard block |
||
| 495 | 503 | break; |
| 496 | 504 | |
| 497 | 505 | default : |
| 498 | - if ($cnt7 >= 1) |
|
| 499 | - break 2; //loop7; |
|
| 506 | + if ($cnt7 >= 1) { |
|
| 507 | + break 2; |
|
| 508 | + } |
|
| 509 | + //loop7; |
|
| 500 | 510 | $eee = new EarlyExitException(7, $this->input); |
| 501 | 511 | throw $eee; |
| 502 | 512 | } |
@@ -573,8 +583,10 @@ discard block |
||
| 573 | 583 | break; |
| 574 | 584 | |
| 575 | 585 | default : |
| 576 | - if ($cnt8 >= 1) |
|
| 577 | - break 2; //loop8; |
|
| 586 | + if ($cnt8 >= 1) { |
|
| 587 | + break 2; |
|
| 588 | + } |
|
| 589 | + //loop8; |
|
| 578 | 590 | $eee = new EarlyExitException(8, $this->input); |
| 579 | 591 | throw $eee; |
| 580 | 592 | } |
@@ -48,6 +48,9 @@ |
||
| 48 | 48 | static $FOLLOW_16_in_listelement147; |
| 49 | 49 | static $FOLLOW_STRING_in_value162; |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param CommonTokenStream $input |
|
| 53 | + */ |
|
| 51 | 54 | public function __construct($input, $state = null) |
| 52 | 55 | { |
| 53 | 56 | if ($state == null) { |
@@ -120,8 +120,9 @@ discard block |
||
| 120 | 120 | $exp = $this->comparision(); |
| 121 | 121 | |
| 122 | 122 | $this->state->_fsp--; |
| 123 | - if ($this->state->failed) |
|
| 124 | - return $result; |
|
| 123 | + if ($this->state->failed) { |
|
| 124 | + return $result; |
|
| 125 | + } |
|
| 125 | 126 | } |
| 126 | 127 | break; |
| 127 | 128 | case 2 : { |
@@ -129,8 +130,9 @@ discard block |
||
| 129 | 130 | $exp = $this->inclause(); |
| 130 | 131 | |
| 131 | 132 | $this->state->_fsp--; |
| 132 | - if ($this->state->failed) |
|
| 133 | - return $result; |
|
| 133 | + if ($this->state->failed) { |
|
| 134 | + return $result; |
|
| 135 | + } |
|
| 134 | 136 | } |
| 135 | 137 | break; |
| 136 | 138 | } |
@@ -161,17 +163,20 @@ discard block |
||
| 161 | 163 | |
| 162 | 164 | try { { |
| 163 | 165 | $lhs = $this->match($this->input, $this->getToken('SYMBOL'), self::$FOLLOW_SYMBOL_in_comparision78); |
| 164 | - if ($this->state->failed) |
|
| 165 | - return $result; |
|
| 166 | + if ($this->state->failed) { |
|
| 167 | + return $result; |
|
| 168 | + } |
|
| 166 | 169 | $this->match($this->input, $this->getToken('13'), self::$FOLLOW_13_in_comparision80); |
| 167 | - if ($this->state->failed) |
|
| 168 | - return $result; |
|
| 170 | + if ($this->state->failed) { |
|
| 171 | + return $result; |
|
| 172 | + } |
|
| 169 | 173 | $this->pushFollow(self::$FOLLOW_value_in_comparision84); |
| 170 | 174 | $rhs = $this->value(); |
| 171 | 175 | |
| 172 | 176 | $this->state->_fsp--; |
| 173 | - if ($this->state->failed) |
|
| 174 | - return $result; |
|
| 177 | + if ($this->state->failed) { |
|
| 178 | + return $result; |
|
| 179 | + } |
|
| 175 | 180 | if ($this->state->backtracking == 0) { |
| 176 | 181 | $result = array('==', new VTEventConditionSymbol(($lhs != null ? $lhs->getText() : null)), $rhs); |
| 177 | 182 | echo $value; |
@@ -199,17 +204,20 @@ discard block |
||
| 199 | 204 | |
| 200 | 205 | try { { |
| 201 | 206 | $lhs = $this->match($this->input, $this->getToken('SYMBOL'), self::$FOLLOW_SYMBOL_in_inclause101); |
| 202 | - if ($this->state->failed) |
|
| 203 | - return $result; |
|
| 207 | + if ($this->state->failed) { |
|
| 208 | + return $result; |
|
| 209 | + } |
|
| 204 | 210 | $this->match($this->input, $this->getToken('IN'), self::$FOLLOW_IN_in_inclause103); |
| 205 | - if ($this->state->failed) |
|
| 206 | - return $result; |
|
| 211 | + if ($this->state->failed) { |
|
| 212 | + return $result; |
|
| 213 | + } |
|
| 207 | 214 | $this->pushFollow(self::$FOLLOW_listelement_in_inclause107); |
| 208 | 215 | $rhs = $this->listelement(); |
| 209 | 216 | |
| 210 | 217 | $this->state->_fsp--; |
| 211 | - if ($this->state->failed) |
|
| 212 | - return $result; |
|
| 218 | + if ($this->state->failed) { |
|
| 219 | + return $result; |
|
| 220 | + } |
|
| 213 | 221 | if ($this->state->backtracking == 0) { |
| 214 | 222 | $result = array('in', new VTEventConditionSymbol(($lhs != null ? $lhs->getText() : null)), $rhs); |
| 215 | 223 | } |
@@ -235,14 +243,16 @@ discard block |
||
| 235 | 243 | |
| 236 | 244 | try { { |
| 237 | 245 | $this->match($this->input, $this->getToken('14'), self::$FOLLOW_14_in_listelement122); |
| 238 | - if ($this->state->failed) |
|
| 239 | - return $result; |
|
| 246 | + if ($this->state->failed) { |
|
| 247 | + return $result; |
|
| 248 | + } |
|
| 240 | 249 | $this->pushFollow(self::$FOLLOW_value_in_listelement126); |
| 241 | 250 | $val = $this->value(); |
| 242 | 251 | |
| 243 | 252 | $this->state->_fsp--; |
| 244 | - if ($this->state->failed) |
|
| 245 | - return $result; |
|
| 253 | + if ($this->state->failed) { |
|
| 254 | + return $result; |
|
| 255 | + } |
|
| 246 | 256 | if ($this->state->backtracking == 0) { |
| 247 | 257 | $result = array('list', $val); |
| 248 | 258 | } |
@@ -259,14 +269,16 @@ discard block |
||
| 259 | 269 | switch ($alt2) { |
| 260 | 270 | case 1 : { |
| 261 | 271 | $this->match($this->input, $this->getToken('15'), self::$FOLLOW_15_in_listelement137); |
| 262 | - if ($this->state->failed) |
|
| 263 | - return $result; |
|
| 272 | + if ($this->state->failed) { |
|
| 273 | + return $result; |
|
| 274 | + } |
|
| 264 | 275 | $this->pushFollow(self::$FOLLOW_value_in_listelement141); |
| 265 | 276 | $val = $this->value(); |
| 266 | 277 | |
| 267 | 278 | $this->state->_fsp--; |
| 268 | - if ($this->state->failed) |
|
| 269 | - return $result; |
|
| 279 | + if ($this->state->failed) { |
|
| 280 | + return $result; |
|
| 281 | + } |
|
| 270 | 282 | if ($this->state->backtracking == 0) { |
| 271 | 283 | $result[] = $val; |
| 272 | 284 | } |
@@ -279,8 +291,9 @@ discard block |
||
| 279 | 291 | } while (true); |
| 280 | 292 | |
| 281 | 293 | $this->match($this->input, $this->getToken('16'), self::$FOLLOW_16_in_listelement147); |
| 282 | - if ($this->state->failed) |
|
| 283 | - return $result; |
|
| 294 | + if ($this->state->failed) { |
|
| 295 | + return $result; |
|
| 296 | + } |
|
| 284 | 297 | } |
| 285 | 298 | } catch (RecognitionException $e) { |
| 286 | 299 | throw $e; |
@@ -302,8 +315,9 @@ discard block |
||
| 302 | 315 | |
| 303 | 316 | try { { |
| 304 | 317 | $val = $this->match($this->input, $this->getToken('STRING'), self::$FOLLOW_STRING_in_value162); |
| 305 | - if ($this->state->failed) |
|
| 306 | - return $result; |
|
| 318 | + if ($this->state->failed) { |
|
| 319 | + return $result; |
|
| 320 | + } |
|
| 307 | 321 | if ($this->state->backtracking == 0) { |
| 308 | 322 | $result = stripcslashes(substr(($val != null ? $val->getText() : null), 1, strlen(($val != null ? $val->getText() : null)) - 2)); |
| 309 | 323 | } |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | * Function to get start and end date of present calendar quarter |
| 267 | 267 | * @param int $month |
| 268 | 268 | * @param DateTime $dateObject |
| 269 | - * @return date range of present quarter |
|
| 269 | + * @return string[] range of present quarter |
|
| 270 | 270 | */ |
| 271 | 271 | public static function getPresentQuarterRange($month = null, &$dateObject = null) |
| 272 | 272 | { |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | * Function to get start and end date of previous calendar quarter |
| 300 | 300 | * @param int $month |
| 301 | 301 | * @param DateTime $dateObject |
| 302 | - * @return date range of present quarter |
|
| 302 | + * @return string[] range of present quarter |
|
| 303 | 303 | */ |
| 304 | 304 | public static function getPreviousQuarterRange($month = null, &$dateObject = null) |
| 305 | 305 | { |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | * Function to get start and end date of next calendar quarter |
| 334 | 334 | * @param int $month |
| 335 | 335 | * @param DateTime $dateObject |
| 336 | - * @return date range of present quarter |
|
| 336 | + * @return string[] range of present quarter |
|
| 337 | 337 | */ |
| 338 | 338 | public static function getNextQuarterRange($month = null, $dateObject = null) |
| 339 | 339 | { |
@@ -67,6 +67,9 @@ discard block |
||
| 67 | 67 | return $moduleList; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param double $start |
|
| 72 | + */ |
|
| 70 | 73 | public static function saveRelatedModuleStartPage($relationId, $start) |
| 71 | 74 | { |
| 72 | 75 | $currentModule = vglobal('currentModule'); |
@@ -97,6 +100,9 @@ discard block |
||
| 97 | 100 | return $start; |
| 98 | 101 | } |
| 99 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $query |
|
| 105 | + */ |
|
| 100 | 106 | public static function getRequestCurrentPage($relationId, $query) |
| 101 | 107 | { |
| 102 | 108 | $listMaxEntriesPerPage = AppConfig::main('list_max_entries_per_page'); |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | return $ns . '-' . $key; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $namespace |
|
| 34 | + */ |
|
| 32 | 35 | public function set($namespace, $key, $value) |
| 33 | 36 | { |
| 34 | 37 | $this->connection->set($this->cacheKey($namespace, $key), $value); |
@@ -24,8 +24,9 @@ |
||
| 24 | 24 | |
| 25 | 25 | protected function cacheKey($ns, $key) |
| 26 | 26 | { |
| 27 | - if (is_array($key)) |
|
| 28 | - $key = implode('-', $key); |
|
| 27 | + if (is_array($key)) { |
|
| 28 | + $key = implode('-', $key); |
|
| 29 | + } |
|
| 29 | 30 | return $ns . '-' . $key; |
| 30 | 31 | } |
| 31 | 32 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * Function to get or set a global variable |
| 13 | - * @param type $key |
|
| 13 | + * @param string $key |
|
| 14 | 14 | * @param type $value |
| 15 | 15 | * @return value of the given key |
| 16 | 16 | */ |
@@ -41,6 +41,9 @@ |
||
| 41 | 41 | $$name; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $name |
|
| 46 | + */ |
|
| 44 | 47 | static function getGlobal($name) |
| 45 | 48 | { |
| 46 | 49 | global $$name; |