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
Json
Server
Cache.php
Go to the documentation of this file.
1
<?php
24
#require_once 'Zend/Server/Cache.php';
25
35
class
Zend_Json_Server_Cache
extends
Zend_Server_Cache
36
{
46
public
static
function
saveSmd
($filename,
Zend_Json_Server
$server)
47
{
48
if
(!is_string($filename)
49
|| (!file_exists($filename) && !
is_writable
(dirname($filename))))
50
{
51
return
false
;
52
}
53
54
if
(0 === @
file_put_contents
($filename, $server->
getServiceMap
()->toJson())) {
55
return
false
;
56
}
57
58
return
true
;
59
}
60
70
public
static
function
getSmd
($filename)
71
{
72
if
(!is_string($filename)
73
|| !file_exists($filename)
74
|| !
is_readable
($filename))
75
{
76
return
false
;
77
}
78
79
80
if
(
false
=== ($smd = @
file_get_contents
($filename))) {
81
return
false
;
82
}
83
84
return
$smd;
85
}
86
93
public
static
function
deleteSmd
($filename)
94
{
95
if
(is_string($filename) && file_exists($filename)) {
96
unlink
($filename);
97
return
true
;
98
}
99
100
return
false
;
101
}
102
}
Zend_Json_Server_Cache\saveSmd
static saveSmd($filename, Zend_Json_Server $server)
Definition:
Cache.php:46
Zend_Json_Server_Cache
Definition:
Cache.php:35
Magento\Framework\Filesystem\Driver\file_put_contents
file_put_contents()
Definition:
http_mock.php:25
Zend_Json_Server\getServiceMap
getServiceMap()
Definition:
Server.php:332
Magento\Framework\Backup\is_writable
is_writable($path)
Definition:
io.php:25
Magento\Framework\Filesystem\Driver\file_get_contents
file_get_contents()
Definition:
http_mock.php:15
Magento\Framework\Backup\unlink
unlink($path)
Definition:
io.php:69
Zend_Server_Cache
Definition:
Cache.php:30
Zend_Json_Server
Definition:
Server.php:33
Zend_Json_Server_Cache\deleteSmd
static deleteSmd($filename)
Definition:
Cache.php:93
Magento\Framework\Backup\Filesystem\Rollback\is_readable
is_readable($path)
Definition:
ioMock.php:14
Zend_Json_Server_Cache\getSmd
static getSmd($filename)
Definition:
Cache.php:70