Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Cache / Storage / Adapter / XCacheOptions.php
blob7dfcf38237d9611f88f83db9b124c1d90c700ea3
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Cache\Storage\Adapter;
12 /**
13 * These are options specific to the XCache adapter
15 class XCacheOptions extends AdapterOptions
17 /**
18 * Namespace separator
20 * @var string
22 protected $namespaceSeparator = ':';
24 /**
25 * Handle admin authentication
27 * @var bool
29 protected $adminAuth = false;
31 /**
32 * Username to call admin functions
34 * @var null|string
36 protected $adminUser;
38 /**
39 * Password to call admin functions
41 * @var null|string
43 protected $adminPass;
45 /**
46 * Set namespace separator
48 * @param string $namespaceSeparator
49 * @return XCacheOptions
51 public function setNamespaceSeparator($namespaceSeparator)
53 $namespaceSeparator = (string) $namespaceSeparator;
54 $this->triggerOptionEvent('namespace_separator', $namespaceSeparator);
55 $this->namespaceSeparator = $namespaceSeparator;
56 return $this;
59 /**
60 * Get namespace separator
62 * @return string
64 public function getNamespaceSeparator()
66 return $this->namespaceSeparator;
69 /**
70 * Set username to call admin functions
72 * @param null|string $adminUser
73 * @return XCacheOptions
75 public function setAdminUser($adminUser)
77 $adminUser = ($adminUser === null) ? null : (string) $adminUser;
78 if ($this->adminUser !== $adminUser) {
79 $this->triggerOptionEvent('admin_user', $adminUser);
80 $this->adminUser = $adminUser;
82 return $this;
85 /**
86 * Get username to call admin functions
88 * @return string
90 public function getAdminUser()
92 return $this->adminUser;
95 /**
96 * Enable/Disable admin authentication handling
98 * @param bool $adminAuth
99 * @return XCacheOptions
101 public function setAdminAuth($adminAuth)
103 $adminAuth = (bool) $adminAuth;
104 if ($this->adminAuth !== $adminAuth) {
105 $this->triggerOptionEvent('admin_auth', $adminAuth);
106 $this->adminAuth = $adminAuth;
108 return $this;
112 * Get admin authentication enabled
114 * @return bool
116 public function getAdminAuth()
118 return $this->adminAuth;
122 * Set password to call admin functions
124 * @param null|string $adminPass
125 * @return XCacheOptions
127 public function setAdminPass($adminPass)
129 $adminPass = ($adminPass === null) ? null : (string) $adminPass;
130 if ($this->adminPass !== $adminPass) {
131 $this->triggerOptionEvent('admin_pass', $adminPass);
132 $this->adminPass = $adminPass;
134 return $this;
138 * Get password to call admin functions
140 * @return string
142 public function getAdminPass()
144 return $this->adminPass;