mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Clarifying what tld means.
This commit is contained in:
parent
7891143cd9
commit
7526d017f0
1 changed files with 4 additions and 2 deletions
|
@ -532,7 +532,8 @@ class CakeRequest implements ArrayAccess {
|
|||
/**
|
||||
* Get the domain name and include $tldLength segments of the tld.
|
||||
*
|
||||
* @param int $tldLength Number of segments your tld contains
|
||||
* @param int $tldLength Number of segments your tld contains. For example: `example.com` contains 1 tld.
|
||||
* While `example.co.uk` contains 2.
|
||||
* @return string Domain name without subdomains.
|
||||
*/
|
||||
public function domain($tldLength = 1) {
|
||||
|
@ -544,7 +545,8 @@ class CakeRequest implements ArrayAccess {
|
|||
/**
|
||||
* Get the subdomains for a host.
|
||||
*
|
||||
* @param int $tldLength Number of segments your tld contains.
|
||||
* @param int $tldLength Number of segments your tld contains. For example: `example.com` contains 1 tld.
|
||||
* While `example.co.uk` contains 2.
|
||||
* @return array of subdomains.
|
||||
*/
|
||||
public function subdomains($tldLength = 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue