Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Session
Config
Validator
CookieLifetimeValidator.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Session\Config\Validator
;
8
9
class
CookieLifetimeValidator
extends
\Magento\Framework\Validator\AbstractValidator
10
{
14
public
function
isValid
(
$value
)
15
{
16
$this->
_clearMessages
();
17
if
(!is_numeric(
$value
)) {
18
$this->
_addMessages
([
'must be numeric'
]);
19
return
false
;
20
}
21
if
(
$value
< 0) {
22
$this->
_addMessages
([
'must be a positive integer or zero'
]);
23
return
false
;
24
}
25
return
true
;
26
}
27
}
Magento\Framework\Session\Config\Validator\CookieLifetimeValidator
Definition:
CookieLifetimeValidator.php:9
Magento\Framework\Session\Config\Validator\CookieLifetimeValidator\isValid
isValid($value)
Definition:
CookieLifetimeValidator.php:14
Magento\Framework\Session\Config\Validator
Definition:
CookieDomainValidator.php:7
$value
$value
Definition:
gender.phtml:16
Magento\Framework\Validator\AbstractValidator\_addMessages
_addMessages(array $messages)
Definition:
AbstractValidator.php:129
Magento\Framework\Validator\AbstractValidator\_clearMessages
_clearMessages()
Definition:
AbstractValidator.php:118