forked from BoldGrid/w3-total-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtil_ConfigLabel.php
41 lines (38 loc) · 1.57 KB
/
Util_ConfigLabel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* File: Util_ConfigLabel.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class: Util_ConfigLabel
*/
class Util_ConfigLabel {
/**
* Undocumented function
*
* @param string $key Key name.
*/
public static function get( $key ) {
static $keys = null;
if ( is_null( $keys ) ) {
$keys = array(
'memcached.servers' => __( 'Memcached hostname:port / <acronym title="Internet Protocol">IP</acronym>:port:', 'w3-total-cache' ),
'memcached.persistent' => __( 'Persistent connection', 'w3-total-cache' ),
'memcached.username' => __( 'Memcached username:', 'w3-total-cache' ),
'memcached.password' => __( 'Memcached password:', 'w3-total-cache' ),
'memcached.binary_protocol' => __( 'Binary protocol', 'w3-total-cache' ),
'redis.servers' => __( 'Redis hostname:port / <acronym title="Internet Protocol">IP</acronym>:port:', 'w3-total-cache' ),
'redis.verify_tls_certificates' => __( 'Verify TLS Certificates', 'w3-total-cache' ),
'redis.persistent' => __( 'Persistent connection', 'w3-total-cache' ),
'redis.timeout' => __( 'Connection timeout', 'w3-total-cache' ),
'redis.retry_interval' => __( 'Connection retry interval', 'w3-total-cache' ),
'redis.read_timeout' => __( 'Connection read timeout', 'w3-total-cache' ),
'redis.dbid' => __( 'Redis Database ID:', 'w3-total-cache' ),
'redis.password' => __( 'Redis password:', 'w3-total-cache' ),
);
}
return $keys[ $key ];
}
}