Elgg  Version master
deprecated-6.1.php
Go to the documentation of this file.
1 <?php
6 /* @deprecated 6.1 Use \Elgg\Cache\CompositeCache::CACHE_BLACK_HOLE */
8 /* @deprecated 6.1 Use \Elgg\Cache\CompositeCache::CACHE_RUNTIME */
10 /* @deprecated 6.1 Use \Elgg\Cache\CompositeCache::CACHE_FILESYSTEM */
12 /* @deprecated 6.1 Use \Elgg\Cache\CompositeCache::CACHE_PERSISTENT */
14 /* @deprecated 6.1 Use \Elgg\Cache\CompositeCache::CACHE_LOCALFILESYSTEM */
16 
23 function elgg_get_system_cache(): \Elgg\Cache\BaseCache {
24  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
25 
26  return _elgg_services()->systemCache->getCache();
27 }
28 
36  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
37 
38  _elgg_services()->systemCache->clear();
39 }
40 
48 function elgg_is_system_cache_enabled(): bool {
49  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
50 
51  return _elgg_services()->systemCache->isEnabled();
52 }
53 
64  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
65 
66  _elgg_services()->systemCache->enable();
67 }
68 
79  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
80 
81  _elgg_services()->systemCache->disable();
82 }
83 
91 function elgg_is_simplecache_enabled(): bool {
92  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
93 
94  return _elgg_services()->simpleCache->isEnabled();
95 }
96 
105  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
106 
107  _elgg_services()->simpleCache->enable();
108 }
109 
120  elgg_deprecated_notice(__METHOD__ . ' has been deprecated.', '6.1');
121 
122  _elgg_services()->simpleCache->disable();
123 }
124 
138 function elgg_plugin_exists(string $plugin_id): bool {
139  elgg_deprecated_notice(__METHOD__ . ' has been deprecated. Use elgg_get_plugin_from_id().', '6.1');
140 
141  return _elgg_services()->plugins->get($plugin_id) instanceof \ElggPlugin;
142 }
elgg_reset_system_cache()
Reset the system cache by deleting the caches.
const ELGG_CACHE_FILESYSTEM
elgg_deprecated_notice(string $msg, string $dep_version)
Log a notice about deprecated use of a function, view, etc.
Definition: elgglib.php:115
const ELGG_CACHE_LOCALFILESYSTEM
elgg_disable_simplecache()
Disables the simple cache.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
Definition: LICENSE.txt:215
elgg_get_system_cache()
Returns an object suitable for caching system information.
elgg_plugin_exists(string $plugin_id)
Returns if a plugin exists in the system.
const ELGG_CACHE_RUNTIME
$plugin_id
Remove all user and plugin settings from the give plugin ID.
Definition: remove.php:8
elgg_enable_system_cache()
Enables the system disk cache.
const ELGG_CACHE_BLACK_HOLE
Bundle all functions which have been deprecated in Elgg 6.1.
elgg_enable_simplecache()
Enables the simple cache.
elgg_disable_system_cache()
Disables the system disk cache.
elgg_is_simplecache_enabled()
Is simple cache enabled.
elgg_is_system_cache_enabled()
Is system cache enabled.
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351
const ELGG_CACHE_PERSISTENT