Source of file XCacheOptions.php
Size: 3,326 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Cache/Storage/Adapter/XCacheOptions.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Cache\Storage\Adapter; /** * These are options specific to the XCache adapter */ class XCacheOptions extends AdapterOptions { /** * Namespace separator * * @var string */ protected $namespaceSeparator = ':'; /** * Handle admin authentication * * @var bool */ protected $adminAuth = false; /** * Username to call admin functions * * @var null|string */ protected $adminUser; /** * Password to call admin functions * * @var null|string */ protected $adminPass; /** * Set namespace separator * * @param string $namespaceSeparator * @return XCacheOptions */ public function setNamespaceSeparator($namespaceSeparator) { $namespaceSeparator = (string) $namespaceSeparator; $this->triggerOptionEvent('namespace_separator', $namespaceSeparator); $this->namespaceSeparator = $namespaceSeparator; return $this; } /** * Get namespace separator * * @return string */ public function getNamespaceSeparator() { return $this->namespaceSeparator; } /** * Set username to call admin functions * * @param null|string $adminUser * @return XCacheOptions */ public function setAdminUser($adminUser) { $adminUser = ($adminUser === null) ? null : (string) $adminUser; if ($this->adminUser !== $adminUser) { $this->triggerOptionEvent('admin_user', $adminUser); $this->adminUser = $adminUser; } return $this; } /** * Get username to call admin functions * * @return string */ public function getAdminUser() { return $this->adminUser; } /** * Enable/Disable admin authentication handling * * @param bool $adminAuth * @return XCacheOptions */ public function setAdminAuth($adminAuth) { $adminAuth = (bool) $adminAuth; if ($this->adminAuth !== $adminAuth) { $this->triggerOptionEvent('admin_auth', $adminAuth); $this->adminAuth = $adminAuth; } return $this; } /** * Get admin authentication enabled * * @return bool */ public function getAdminAuth() { return $this->adminAuth; } /** * Set password to call admin functions * * @param null|string $adminPass * @return XCacheOptions */ public function setAdminPass($adminPass) { $adminPass = ($adminPass === null) ? null : (string) $adminPass; if ($this->adminPass !== $adminPass) { $this->triggerOptionEvent('admin_pass', $adminPass); $this->adminPass = $adminPass; } return $this; } /** * Get password to call admin functions * * @return string */ public function getAdminPass() { return $this->adminPass; } } |