PHP Class N98\Magento\Command\System\Check\Settings\CookieDomainCheckAbstract

Inheritance: extends CheckAbstract
Datei anzeigen Open project: netz98/n98-magerun

Protected Properties

Property Type Description
$class

Public Methods

Method Description
initConfigPaths ( )
validateCookieDomainAgainstUrl ( string $cookieDomain, string $siteUrl ) : boolean simplified cookie domain against base-URL validation

Protected Methods

Method Description
checkSettings ( Result $result, Mage_Core_Model_Store $store, string $baseUrl, string $cookieDomain )

Method Details

checkSettings() protected method

protected checkSettings ( Result $result, Mage_Core_Model_Store $store, string $baseUrl, string $cookieDomain )
$result N98\Magento\Command\System\Check\Result
$store Mage_Core_Model_Store
$baseUrl string setting
$cookieDomain string setting

initConfigPaths() public method

public initConfigPaths ( )

validateCookieDomainAgainstUrl() public method

it follows the following (incomplete) verification: - the site-domain is extracted from the base-url - site-domain and cookie-domain are normalized by making them lowercase - if the site-domain is empty, the check returns false because it's moot - if the cookie-domain is smaller than three, the check returns false because it's moot - if the cookie-domain does not start with a dot ("."), and the whole matches site-domain return true. - otherwise the dot is removed and the cookie-domain is now with removed starting dot. - the cookie domain must be the suffix of the site-domain and the remaining prefix of site-domain must end with a dot. returns true/false
public validateCookieDomainAgainstUrl ( string $cookieDomain, string $siteUrl ) : boolean
$cookieDomain string
$siteUrl string
return boolean

Property Details

$class protected_oe property

protected $class