X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/horde/framework/Horde/Support
home
/
cbholdings
/
pasukulu
/
lib
/
horde
/
framework
/
Horde
/
Support
/
📁
..
📄
Array.php
(4.38 KB)
📄
Backtrace.php
(4.79 KB)
📄
CaseInsensitiveArray.php
(2.1 KB)
📄
CombineStream.php
(2.13 KB)
📄
ConsistentHash.php
(6.58 KB)
📄
Guid.php
(1.74 KB)
📄
Inflector.php
(12.34 KB)
📄
Memory.php
(2.64 KB)
📁
Numerizer
📄
Numerizer.php
(1.33 KB)
📄
ObjectStub.php
(1.23 KB)
📄
Randomid.php
(1.71 KB)
📄
Stack.php
(806 B)
📄
StringStream.php
(2.24 KB)
📄
Stub.php
(2.69 KB)
📄
Timer.php
(1.13 KB)
📄
Uuid.php
(2.28 KB)
📄
index.php
(1.9 KB)
Editing: CaseInsensitiveArray.php
<?php /** * Copyright 2013-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (BSD). If you * did not receive this file, see http://www.horde.org/licenses/bsd. * * @category Horde * @copyright 2013-2017 Horde LLC * @license http://www.horde.org/licenses/bsd BSD * @package Support */ /** * An array implemented as an object that contains case-insensitive keys. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @copyright 2013-2017 Horde LLC * @license http://www.horde.org/licenses/bsd BSD * @package Support */ class Horde_Support_CaseInsensitiveArray extends ArrayIterator { /** */ #[ReturnTypeWillChange] public function offsetGet($offset) { return (is_null($offset = $this->_getRealOffset($offset))) ? null : parent::offsetGet($offset); } /** */ #[ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($roffset = $this->_getRealOffset($offset))) { parent::offsetSet($offset, $value); } else { parent::offsetSet($roffset, $value); } } /** */ #[ReturnTypeWillChange] public function offsetExists($offset) { return !is_null($offset = $this->_getRealOffset($offset)); } /** */ #[ReturnTypeWillChange] public function offsetUnset($offset) { if (!is_null($offset = $this->_getRealOffset($offset))) { parent::offsetUnset($offset); } } /** * Determines the actual array offset given the input offset. * * @param string $offset Input offset. * * @return string Real offset or null. */ protected function _getRealOffset($offset) { /* Optimize: check for base $offset in array first. */ if (parent::offsetExists($offset)) { return $offset; } foreach (array_keys($this->getArrayCopy()) as $key) { if (strcasecmp($key, $offset) === 0) { return $key; } } return null; } }
Upload File
Create Folder