@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | use PH7\Framework\Layout\Html\Design; |
11 | 11 | use PH7\Framework\Mvc\Model\DbConfig; |
12 | -use PH7\Framework\Cache\Cache; |
|
13 | 12 | use PH7\Framework\Url\Header; |
14 | 13 | |
15 | 14 | class MainController extends Controller |
@@ -260,6 +260,11 @@ discard block |
||
260 | 260 | } |
261 | 261 | } |
262 | 262 | |
263 | + /** |
|
264 | + * @param string $sModule |
|
265 | + * @param string $sController |
|
266 | + * @param string $sAction |
|
267 | + */ |
|
263 | 268 | public function url($sModule, $sController, $sAction, $sVars = null, $bClear = true) |
264 | 269 | { |
265 | 270 | $sUrl = Uri::get($sModule, $sController, $sAction, $sVars, $bClear); |
@@ -527,7 +532,7 @@ discard block |
||
527 | 532 | * @internal If it's an IPv6, show only the beginning, otherwise it would be too long in the template. |
528 | 533 | * @param string $sIp Allows to speciy another IP address than the client one. |
529 | 534 | * @param boolean $bPrint Print or Return the HTML code. Default TRUE |
530 | - * @return mixed (string | void) |
|
535 | + * @return null|string (string | void) |
|
531 | 536 | */ |
532 | 537 | public function ip($sIp = null, $bPrint = true) |
533 | 538 | { |
@@ -544,7 +549,7 @@ discard block |
||
544 | 549 | * Show the geolocation of the user (with link that points to the Country controller). |
545 | 550 | * |
546 | 551 | * @param boolean $bPrint Print or Return the HTML code. Default TRUE |
547 | - * @return mixed (string | void) |
|
552 | + * @return null|string (string | void) |
|
548 | 553 | */ |
549 | 554 | public function geoIp($bPrint = true) |
550 | 555 | { |
@@ -576,7 +581,7 @@ discard block |
||
576 | 581 | /** |
577 | 582 | * Get the User Avatar. |
578 | 583 | * |
579 | - * @param string $sUername |
|
584 | + * @param string $sUsername |
|
580 | 585 | * @param string $sSex |
581 | 586 | * @param integer $iSize |
582 | 587 | * @return void Html contents. URL avatar default 150px or the user avatar. |
@@ -12,25 +12,24 @@ |
||
12 | 12 | namespace PH7\Framework\Layout\Html; |
13 | 13 | defined('PH7') or exit('Restricted access'); |
14 | 14 | |
15 | -use |
|
16 | -PH7\Framework\Core\Kernel, |
|
17 | -PH7\Framework\Registry\Registry, |
|
18 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
19 | -PH7\Framework\Mvc\Model\DbConfig, |
|
20 | -PH7\UserCore, |
|
21 | -PH7\Framework\Url\Url, |
|
22 | -PH7\Framework\Ip\Ip, |
|
23 | -PH7\Framework\Geo\Ip\Geo, |
|
24 | -PH7\Framework\Str\Str, |
|
25 | -PH7\Framework\File\File, |
|
26 | -PH7\Framework\Session\Session, |
|
27 | -PH7\Framework\Navigation\Page, |
|
28 | -PH7\Framework\Geo\Misc\Country, |
|
29 | -PH7\Framework\Benchmark\Benchmark, |
|
30 | -PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl, |
|
31 | -PH7\Framework\Module\Various as SysMod, |
|
32 | -PH7\Framework\Mvc\Request\Http, |
|
33 | -PH7\Framework\Mvc\Router\Uri; |
|
15 | +use PH7\Framework\Core\Kernel; |
|
16 | +use PH7\Framework\Registry\Registry; |
|
17 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
18 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
19 | +use PH7\UserCore; |
|
20 | +use PH7\Framework\Url\Url; |
|
21 | +use PH7\Framework\Ip\Ip; |
|
22 | +use PH7\Framework\Geo\Ip\Geo; |
|
23 | +use PH7\Framework\Str\Str; |
|
24 | +use PH7\Framework\File\File; |
|
25 | +use PH7\Framework\Session\Session; |
|
26 | +use PH7\Framework\Navigation\Page; |
|
27 | +use PH7\Framework\Geo\Misc\Country; |
|
28 | +use PH7\Framework\Benchmark\Benchmark; |
|
29 | +use PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl; |
|
30 | +use PH7\Framework\Module\Various as SysMod; |
|
31 | +use PH7\Framework\Mvc\Request\Http; |
|
32 | +use PH7\Framework\Mvc\Router\Uri; |
|
34 | 33 | |
35 | 34 | class Design |
36 | 35 | { |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | * Check if file exists. |
126 | 126 | * |
127 | 127 | * @param mixed (array | string) $mFile |
128 | + * @param string $mFile |
|
128 | 129 | * @return boolean TRUE if file exists, FALSE otherwise. |
129 | 130 | */ |
130 | 131 | public function existFile($mFile) |
@@ -278,6 +279,7 @@ discard block |
||
278 | 279 | * |
279 | 280 | * @param mixed (string | array) $mDir |
280 | 281 | * @param integer (octal) $iMode Default: 0777 |
282 | + * @param string $mDir |
|
281 | 283 | * @return void |
282 | 284 | * @throws Exception If the file cannot be created. |
283 | 285 | */ |
@@ -326,7 +328,7 @@ discard block |
||
326 | 328 | * |
327 | 329 | * @param string $sFrom File or directory. |
328 | 330 | * @param string $sTo File or directory. |
329 | - * @return mixed (integer | boolean) Returns the last line on success, and FALSE on failure. |
|
331 | + * @return string|false (integer | boolean) Returns the last line on success, and FALSE on failure. |
|
330 | 332 | */ |
331 | 333 | public function systemCopy($sFrom, $sTo) |
332 | 334 | { |
@@ -368,7 +370,7 @@ discard block |
||
368 | 370 | * |
369 | 371 | * @param string $sFrom File or directory. |
370 | 372 | * @param string $sTo File or directory. |
371 | - * @return mixed (integer | boolean) Returns the last line on success, and FALSE on failure. |
|
373 | + * @return string|false (integer | boolean) Returns the last line on success, and FALSE on failure. |
|
372 | 374 | */ |
373 | 375 | public function systemRename($sFrom, $sTo) |
374 | 376 | { |
@@ -422,6 +424,7 @@ discard block |
||
422 | 424 | * Get the creation/modification time of a file in the Unix timestamp. |
423 | 425 | * |
424 | 426 | * @param string Full path of the file. |
427 | + * @param string $sFile |
|
425 | 428 | * @return mixed (integer | boolean) Returns the time the file was last modified, or FALSE if it not found. |
426 | 429 | */ |
427 | 430 | public function getModifTime($sFile) |
@@ -434,6 +437,7 @@ discard block |
||
434 | 437 | * Shortened form of self::getModifTime() |
435 | 438 | * |
436 | 439 | * @param string Full path of the file. |
440 | + * @param string $sFile |
|
437 | 441 | * @return integer Returns the latest modification time of the file in Unix timestamp. |
438 | 442 | */ |
439 | 443 | public static function version($sFile) |
@@ -445,7 +449,7 @@ discard block |
||
445 | 449 | * Delay script execution. |
446 | 450 | * |
447 | 451 | * @param integer $iSleep Halt time in seconds. Optional parameter, default value is 5. |
448 | - * @return mixed (integer | boolean) Returns "0" on success, or "false" on error. |
|
452 | + * @return integer (integer | boolean) Returns "0" on success, or "false" on error. |
|
449 | 453 | */ |
450 | 454 | public function sleep($iSleep = null) |
451 | 455 | { |
@@ -689,7 +693,7 @@ discard block |
||
689 | 693 | * Get the URL contents (For URLs, it is better to use CURL because it is faster than file_get_contents function). |
690 | 694 | * |
691 | 695 | * @param string $sUrl URL to be read contents. |
692 | - * @return mixed (string | boolean) Return the result content on success, FALSE on failure. |
|
696 | + * @return string (string | boolean) Return the result content on success, FALSE on failure. |
|
693 | 697 | */ |
694 | 698 | public function getUrlContents($sUrl) |
695 | 699 | { |
@@ -763,7 +767,7 @@ discard block |
||
763 | 767 | * Create a recurive directory iterator for a given directory. |
764 | 768 | * |
765 | 769 | * @param string $sPath |
766 | - * @return string The directory. |
|
770 | + * @return \RecursiveDirectoryIterator The directory. |
|
767 | 771 | */ |
768 | 772 | public function getDirIterator($sPath) |
769 | 773 | { |