Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/smart-sl.../Nextend/Framewor.../Cache/Storage
File: Database.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Nextend\Framework\Cache\Storage;
[2] Fix | Delete
[3] Fix | Delete
use Nextend\Framework\Model\ApplicationSection;
[4] Fix | Delete
use Nextend\Framework\Platform\Platform;
[5] Fix | Delete
[6] Fix | Delete
class Database extends AbstractStorage {
[7] Fix | Delete
[8] Fix | Delete
protected $db;
[9] Fix | Delete
[10] Fix | Delete
public function __construct() {
[11] Fix | Delete
[12] Fix | Delete
$this->paths['web'] = 'web';
[13] Fix | Delete
$this->paths['notweb'] = 'notweb';
[14] Fix | Delete
$this->paths['image'] = 'image';
[15] Fix | Delete
[16] Fix | Delete
$this->db = new ApplicationSection('cache');
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
public function clearAll($scope = 'notweb') {
[20] Fix | Delete
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
public function clear($group, $scope = 'notweb') {
[24] Fix | Delete
[25] Fix | Delete
$this->db->delete($scope . '/' . $group);
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
public function exists($group, $key, $scope = 'notweb') {
[29] Fix | Delete
[30] Fix | Delete
if ($this->db->get($scope . '/' . $group, $key)) {
[31] Fix | Delete
return true;
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
return false;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
public function set($group, $key, $value, $scope = 'notweb') {
[38] Fix | Delete
[39] Fix | Delete
$this->db->set($scope . '/' . $group, $key, $value);
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
public function get($group, $key, $scope = 'notweb') {
[43] Fix | Delete
return $this->db->get($scope . '/' . $group, $key);
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
public function remove($group, $key, $scope = 'notweb') {
[47] Fix | Delete
$this->db->delete($scope . '/' . $group, $key);
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
public function getPath($group, $key, $scope = 'notweb') {
[51] Fix | Delete
[52] Fix | Delete
return Platform::getSiteUrl() . '?nextendcache=1&g=' . urlencode($group) . '&k=' . urlencode($key);
[53] Fix | Delete
}
[54] Fix | Delete
}
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function