PHP Класс N98\Magento\Command\System\Check\Settings\CookieDomainCheckAbstract

Наследование: extends CheckAbstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$class

Открытые методы

Метод Описание
initConfigPaths ( )
validateCookieDomainAgainstUrl ( string $cookieDomain, string $siteUrl ) : boolean simplified cookie domain against base-URL validation

Защищенные методы

Метод Описание
checkSettings ( Result $result, Mage_Core_Model_Store $store, string $baseUrl, string $cookieDomain )

Описание методов

checkSettings() защищенный Метод

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 initConfigPaths ( )

validateCookieDomainAgainstUrl() публичный Метод

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
Результат boolean

Описание свойств

$class защищенное свойство

protected $class