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
zendframework1
library
Zend
Mail
Header
HeaderName.php
Go to the documentation of this file.
1
<?php
29
final
class
Zend_Mail_Header_HeaderName
30
{
34
private
function
__construct()
35
{
36
}
37
45
public
static
function
filter
(
$name
)
46
{
47
$result
=
''
;
48
$tot = strlen(
$name
);
49
for
(
$i
= 0;
$i
< $tot;
$i
+= 1) {
50
$ord = ord(
$name
[
$i
]);
51
if
($ord > 32 && $ord < 127 && $ord !== 58) {
52
$result
.=
$name
[
$i
];
53
}
54
}
55
return
$result
;
56
}
57
64
public
static
function
isValid
(
$name
)
65
{
66
$tot = strlen(
$name
);
67
for
(
$i
= 0;
$i
< $tot;
$i
+= 1) {
68
$ord = ord(
$name
[
$i
]);
69
if
($ord < 33 || $ord > 126 || $ord === 58) {
70
return
false
;
71
}
72
}
73
return
true
;
74
}
75
85
public
static
function
assertValid
(
$name
)
86
{
87
if
(! self::isValid(
$name
)) {
88
#require_once 'Zend/Mail/Exception.php';
89
throw
new
Zend_Mail_Exception
(
'Invalid header name detected'
);
90
}
91
}
92
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Zend_Mail_Header_HeaderName\assertValid
static assertValid($name)
Definition:
HeaderName.php:85
Zend_Mail_Exception
Definition:
Exception.php:35
Zend_Mail_Header_HeaderName\filter
static filter($name)
Definition:
HeaderName.php:45
Zend_Mail_Header_HeaderName
Definition:
HeaderName.php:29
Zend_Mail_Header_HeaderName\isValid
static isValid($name)
Definition:
HeaderName.php:64
$i
$i
Definition:
gallery.phtml:31
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14