\Object_Sync_Sf_WordPress_Transient

Class to store all theme/plugin transients as an array in one WordPress transient

Summary

Methods
Properties
Constants
__construct()
all_keys()
set()
get()
delete()
flush()
No public properties found
No constants found
No protected methods found
$name
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : 

Type

Methods

__construct()

__construct(string  $name) 

Constructor which sets cache options and the name of the field that lists this plugin's cache keys.

Parameters

string $name

The name of the field that lists all cache keys.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

all_keys()

all_keys() : mixed

Get the transient that lists all the other transients for this plugin.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

mixed —

value of transient. False of empty, otherwise array.

set()

set(string  $cachekey, mixed  $value,   $cache_expiration) : mixed

Set individual transient, and add its key to the list of this plugin's transients.

Parameters

string $cachekey

the key for this cache item

mixed $value

the value of the cache item

$cache_expiration
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

mixed —

value of transient. False of empty, otherwise array.

get()

get(string  $cachekey) : mixed

Get the individual cache value

Parameters

string $cachekey

the key for this cache item

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

mixed —

value of transient. False of empty, otherwise array.

delete()

delete(string  $cachekey) : boolean

Delete the individual cache value

Parameters

string $cachekey

the key for this cache item

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

boolean —

True if successful, false otherwise.

flush()

flush() : boolean

Delete the entire cache for this plugin

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

boolean —

True if successful, false otherwise.