@@ -56,7 +56,7 @@ |
||
56 | 56 | * @param integer $iWidth |
57 | 57 | * @param integer $iHeight |
58 | 58 | * @param boolean $bOnlyActive Default TRUE |
59 | - * @return object Query |
|
59 | + * @return false|null Query |
|
60 | 60 | */ |
61 | 61 | public function ad($iWidth, $iHeight, $bOnlyActive = true) |
62 | 62 | { |
@@ -13,11 +13,10 @@ |
||
13 | 13 | namespace PH7\Framework\Mvc\Model; |
14 | 14 | defined('PH7') or exit('Restricted access'); |
15 | 15 | |
16 | -use |
|
17 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
18 | -PH7\Framework\Registry\Registry, |
|
19 | -PH7\Framework\Cache\Cache, |
|
20 | -PH7\Framework\Parse\SysVar; |
|
16 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
17 | +use PH7\Framework\Registry\Registry; |
|
18 | +use PH7\Framework\Cache\Cache; |
|
19 | +use PH7\Framework\Parse\SysVar; |
|
21 | 20 | |
22 | 21 | class Design extends \PH7\Framework\Layout\Html\Design |
23 | 22 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @param string $sKey the array key |
50 | 50 | * @param string $sValue The value |
51 | - * @return object this |
|
51 | + * @return Record this |
|
52 | 52 | */ |
53 | 53 | public function addValue($sKey, $sValue) |
54 | 54 | { |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | * |
395 | 395 | * @param string $sTable |
396 | 396 | * @param array $aValues |
397 | - * @return object this |
|
397 | + * @return Record this |
|
398 | 398 | */ |
399 | 399 | public function updates($sTable, array $aValues) |
400 | 400 | { |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | * |
419 | 419 | * @param string $sTable |
420 | 420 | * @param string $sWhat Default: '*' |
421 | - * @return object this |
|
421 | + * @return Record this |
|
422 | 422 | * |
423 | 423 | */ |
424 | 424 | public function select($sTable, $sWhat = '*') |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | * |
435 | 435 | * @param string $sField |
436 | 436 | * @param string $sValue |
437 | - * @return object this |
|
437 | + * @return Record this |
|
438 | 438 | * |
439 | 439 | */ |
440 | 440 | public function find($sField, $sValue) |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | * |
451 | 451 | * @param string $sField |
452 | 452 | * @param string $sValue |
453 | - * @return object this |
|
453 | + * @return Record this |
|
454 | 454 | * |
455 | 455 | */ |
456 | 456 | public function andFind($sField, $sValue) |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | * |
467 | 467 | * @param string $sField |
468 | 468 | * @param string $sValue |
469 | - * @return object this |
|
469 | + * @return Record this |
|
470 | 470 | * |
471 | 471 | */ |
472 | 472 | public function orFind($sField, $sValue) |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | * |
483 | 483 | * @param string $sField |
484 | 484 | * @param string $sValue |
485 | - * @return object this |
|
485 | + * @return Record this |
|
486 | 486 | */ |
487 | 487 | public function havingFind($sField, $sValue) |
488 | 488 | { |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | * @param string $sField |
497 | 497 | * @param string $sValue |
498 | 498 | * @param string $sOperator Default: '=' |
499 | - * @return object this |
|
499 | + * @return Record this |
|
500 | 500 | * |
501 | 501 | */ |
502 | 502 | public function where($sField, $sValue, $sOperator = '=') |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | * @param string $sField |
512 | 512 | * @param string $sValue |
513 | 513 | * @param string $sOperator Default: '=' |
514 | - * @return object this |
|
514 | + * @return Record this |
|
515 | 515 | */ |
516 | 516 | public function andClause($sField, $sValue, $sOperator = '=') |
517 | 517 | { |
@@ -525,7 +525,7 @@ discard block |
||
525 | 525 | * @param string $sField |
526 | 526 | * @param string $sValue |
527 | 527 | * @param string $sOperator Default: '=' |
528 | - * @return object this |
|
528 | + * @return Record this |
|
529 | 529 | */ |
530 | 530 | public function orClause($sField, $sValue, $sOperator = '=') |
531 | 531 | { |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | * |
539 | 539 | * @param integer $iOffset |
540 | 540 | * @param integer $iLimit |
541 | - * @return object this |
|
541 | + * @return Record this |
|
542 | 542 | */ |
543 | 543 | public function limit($iOffset, $iLimit) |
544 | 544 | { |
@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | * |
552 | 552 | * @param string $sField |
553 | 553 | * @param string $sOrder Default: 'ASC' |
554 | - * @return object this |
|
554 | + * @return Record this |
|
555 | 555 | */ |
556 | 556 | public function orderBy($sField, $sOrder = Db::ASC) |
557 | 557 | { |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * Add a GROUP BY clause. |
564 | 564 | * |
565 | 565 | * @param string $sGroup |
566 | - * @return object this |
|
566 | + * @return Record this |
|
567 | 567 | */ |
568 | 568 | public function groupBy($sGroup) |
569 | 569 | { |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | * @param string $sField |
578 | 578 | * @param string $sValue |
579 | 579 | * @param string $sOperator Default: '=' |
580 | - * @return object this |
|
580 | + * @return Record this |
|
581 | 581 | */ |
582 | 582 | public function having($sField, $sValue, $sOperator = '=') |
583 | 583 | { |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | * |
591 | 591 | * @param string $sClsName Clause operator. |
592 | 592 | * @param string $sVal Value. |
593 | - * @return object this |
|
593 | + * @return Record this |
|
594 | 594 | */ |
595 | 595 | protected function clause($sClsName, $sVal) |
596 | 596 | { |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | * @param string $sField Field |
606 | 606 | * @param string $sVal Value. |
607 | 607 | * @param string $sOpt Operator. |
608 | - * @return object this |
|
608 | + * @return Record this |
|
609 | 609 | */ |
610 | 610 | protected function optClause($sClsName, $sField, $sVal, $sOpt) |
611 | 611 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * Convert mod to table. |
48 | 48 | * |
49 | 49 | * @param string $Mod |
50 | - * @return mixed (string | void) Returns the table if it is correct. |
|
50 | + * @return string (string | void) Returns the table if it is correct. |
|
51 | 51 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
52 | 52 | */ |
53 | 53 | public static function convertModToTable($Mod) |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
120 | 120 | * |
121 | 121 | * @param string $sTable |
122 | - * @return mixed (string | void) Returns the table if it is correct. |
|
122 | + * @return string (string | void) Returns the table if it is correct. |
|
123 | 123 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
124 | 124 | */ |
125 | 125 | public static function convertTableToId($sTable) |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
181 | 181 | * |
182 | 182 | * @param string $sTable |
183 | - * @return mixed (string | void) Returns the table if it is correct. |
|
183 | + * @return string|null (string | void) Returns the table if it is correct. |
|
184 | 184 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
185 | 185 | */ |
186 | 186 | public static function checkTable($sTable) |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
213 | 213 | * |
214 | 214 | * @param string $sTable |
215 | - * @return mixed (string | void) Returns the table if it is correct. |
|
215 | + * @return string|null (string | void) Returns the table if it is correct. |
|
216 | 216 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
217 | 217 | */ |
218 | 218 | public static function checkModelTable($sTable) |
@@ -12,7 +12,8 @@ |
||
12 | 12 | namespace PH7\Framework\Mvc\Model\Engine\Util; |
13 | 13 | defined('PH7') or exit('Restricted access'); |
14 | 14 | |
15 | -use PH7\Framework\Mvc\Model\Engine\Db, PH7\Framework\Pattern\Statik; |
|
15 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
16 | +use PH7\Framework\Pattern\Statik; |
|
16 | 17 | |
17 | 18 | class Various |
18 | 19 | { |
@@ -427,6 +427,7 @@ |
||
427 | 427 | |
428 | 428 | /** |
429 | 429 | * @access private |
430 | + * @param string $sMod |
|
430 | 431 | * @return void |
431 | 432 | */ |
432 | 433 | private function ajaxRouter($sMod = null) |
@@ -15,16 +15,15 @@ |
||
15 | 15 | namespace PH7\Framework\Mvc\Router; |
16 | 16 | defined('PH7') or exit('Restricted access'); |
17 | 17 | |
18 | -use |
|
19 | -PH7\Framework\Translate\Lang, |
|
20 | -PH7\Framework\Layout\LoadTemplate, |
|
21 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
22 | -PH7\Framework\Registry\Registry, |
|
23 | -PH7\Framework\Config\Config, |
|
24 | -PH7\Framework\Mvc\Model\DbConfig, |
|
25 | -PH7\Framework\Mvc\Request\Http, |
|
26 | -PH7\Framework\Url\Uri, |
|
27 | -PH7\Framework\Mvc\Router\Uri as UriRoute; |
|
18 | +use PH7\Framework\Translate\Lang; |
|
19 | +use PH7\Framework\Layout\LoadTemplate; |
|
20 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
21 | +use PH7\Framework\Registry\Registry; |
|
22 | +use PH7\Framework\Config\Config; |
|
23 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
24 | +use PH7\Framework\Mvc\Request\Http; |
|
25 | +use PH7\Framework\Url\Uri; |
|
26 | +use PH7\Framework\Mvc\Router\Uri as UriRoute; |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * @class Singleton Class |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * Load route file. |
35 | 35 | * |
36 | 36 | * @param string \DOMDocument $oDom |
37 | - * @return object \DOMDocument |
|
37 | + * @return \DOMDocument \DOMDocument |
|
38 | 38 | * @throws \PH7\Framework\File\Exception If the file is not found. |
39 | 39 | */ |
40 | 40 | public static function loadFile(\DOMDocument $oDom) |
@@ -11,7 +11,8 @@ |
||
11 | 11 | namespace PH7\Framework\Mvc\Router; |
12 | 12 | defined('PH7') or exit('Restricted access'); |
13 | 13 | |
14 | -use PH7\Framework\Pattern\Statik, PH7\Framework\Parse\Url; |
|
14 | +use PH7\Framework\Pattern\Statik; |
|
15 | +use PH7\Framework\Parse\Url; |
|
15 | 16 | |
16 | 17 | class Uri |
17 | 18 | { |
@@ -585,7 +585,7 @@ |
||
585 | 585 | * things like j a v a s c r i p t |
586 | 586 | * |
587 | 587 | * @param type |
588 | - * @return type |
|
588 | + * @return string |
|
589 | 589 | */ |
590 | 590 | protected function _compact_exploded_words($matches) |
591 | 591 | { |
@@ -31,7 +31,6 @@ |
||
31 | 31 | /** |
32 | 32 | * Emit a signal. |
33 | 33 | * |
34 | - * @param mixed $mVar [, string $... ] |
|
35 | 34 | * @return string |
36 | 35 | */ |
37 | 36 | public static function emit() |
@@ -4,11 +4,8 @@ |
||
4 | 4 | */ |
5 | 5 | defined('PH7') or exit('Restricted access'); |
6 | 6 | |
7 | -use |
|
8 | -PH7\Framework\Translate\Adapter\Gettext\StreamReader, |
|
9 | -PH7\Framework\Translate\Adapter\Gettext\StringReader, |
|
10 | -PH7\Framework\Translate\Adapter\Gettext\FileReader, |
|
11 | -PH7\Framework\Translate\Adapter\Gettext\CachedFileReader; |
|
7 | +use PH7\Framework\Translate\Adapter\Gettext\StreamReader; |
|
8 | +use PH7\Framework\Translate\Adapter\Gettext\FileReader; |
|
12 | 9 | |
13 | 10 | |
14 | 11 | /* |
@@ -14,7 +14,8 @@ discard block |
||
14 | 14 | { |
15 | 15 | defined('PH7') or exit('Restricted access'); |
16 | 16 | |
17 | - use PH7\Framework\Config\Config, PH7\Framework\Cookie\Cookie; |
|
17 | + use PH7\Framework\Config\Config; |
|
18 | + use PH7\Framework\Cookie\Cookie; |
|
18 | 19 | |
19 | 20 | class Lang |
20 | 21 | { |
@@ -177,7 +178,8 @@ discard block |
||
177 | 178 | namespace |
178 | 179 | { |
179 | 180 | |
180 | - use PH7\Framework\Registry\Registry, PH7\Framework\Parse\SysVar; |
|
181 | + use PH7\Framework\Registry\Registry; |
|
182 | + use PH7\Framework\Parse\SysVar; |
|
181 | 183 | |
182 | 184 | /** |
183 | 185 | * Check if GetText PHP extension exists, if not, it'll includes the GetText library. |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * Set the default language name. |
49 | 49 | * |
50 | 50 | * @param string $sNewDefLang Prefix of the language. |
51 | - * @return object $this |
|
51 | + * @return Lang $this |
|
52 | 52 | */ |
53 | 53 | public function setDefaultLang($sNewDefLang) |
54 | 54 | { |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * Set the user language name. |
62 | 62 | * |
63 | - * @param string $sNewDefaultLang Prefix of the language. |
|
64 | - * @return object $this |
|
63 | + * @return Lang $this |
|
65 | 64 | */ |
66 | 65 | public function setUserLang($sNewUserLang) |
67 | 66 | { |
@@ -120,7 +119,7 @@ discard block |
||
120 | 119 | * |
121 | 120 | * @param string $sFileName The language filename (e.g., "global"). |
122 | 121 | * @param string $sPath If you want to change the default path (the path to the current module), you can specify the path. Default NULL |
123 | - * @return object $this |
|
122 | + * @return Lang $this |
|
124 | 123 | */ |
125 | 124 | public function load($sFileName, $sPath = null) |
126 | 125 | { |
@@ -134,7 +133,7 @@ discard block |
||
134 | 133 | /** |
135 | 134 | * Loading language files. |
136 | 135 | * |
137 | - * @return object $this |
|
136 | + * @return Lang $this |
|
138 | 137 | * @throws \PH7\Framework\Translate\Exception If the language file is not found. |
139 | 138 | */ |
140 | 139 | public function init() |
@@ -202,7 +201,6 @@ discard block |
||
202 | 201 | /** |
203 | 202 | * Language helper function. |
204 | 203 | * |
205 | - * @param string $sVar [, string $... ] |
|
206 | 204 | * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table). |
207 | 205 | */ |
208 | 206 | function t(...$aTokens) |