@@ 411-425 (lines=15) @@ | ||
408 | * |
|
409 | * @return string |
|
410 | */ |
|
411 | function getSiteUrl() |
|
412 | { |
|
413 | $num_args = func_num_args(); |
|
414 | $args_list = func_get_args(); |
|
415 | ||
416 | if(!$num_args) |
|
417 | { |
|
418 | return Context::getRequestUri(); |
|
419 | } |
|
420 | ||
421 | $domain = array_shift($args_list); |
|
422 | $num_args = count($args_list); |
|
423 | ||
424 | return Context::getUrl($num_args, $args_list, $domain); |
|
425 | } |
|
426 | ||
427 | /** |
|
428 | * getSiteUrl() returns the not encoded URL by transforming the given argument value of domain |
|
@@ 433-447 (lines=15) @@ | ||
430 | * |
|
431 | * @return string |
|
432 | */ |
|
433 | function getNotEncodedSiteUrl() |
|
434 | { |
|
435 | $num_args = func_num_args(); |
|
436 | $args_list = func_get_args(); |
|
437 | ||
438 | if(!$num_args) |
|
439 | { |
|
440 | return Context::getRequestUri(); |
|
441 | } |
|
442 | ||
443 | $domain = array_shift($args_list); |
|
444 | $num_args = count($args_list); |
|
445 | ||
446 | return Context::getUrl($num_args, $args_list, $domain, FALSE); |
|
447 | } |
|
448 | ||
449 | /** |
|
450 | * Return the value adding request uri to the getSiteUrl() To get the full url |