GRAYBYTE WORDPRESS FILE MANAGER9253

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/nioscentre.in/wp-content/plugins/forminator/library/addon/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/nioscentre.in/wp-content/plugins/forminator/library/addon//class-addon-container.php
<?php
/**
 * The Forminator_Addon_Container class.
 *
 * @package Forminator
 */

/**
 * Class Forminator_Addon_Container
 * Container that holds addons
 *
 * @since 1.1
 */
class Forminator_Addon_Container implements ArrayAccess, Countable, Iterator {

	/**
	 * Addons
	 *
	 * @since 1.1
	 * @var Forminator_Integration[]
	 */
	private $addons = array();

	/**
	 * Offset exists
	 *
	 * @since 1.1
	 *
	 * @param mixed $offset Offset.
	 *
	 * @return bool
	 */
	#[\ReturnTypeWillChange]
	public function offsetExists( $offset ) {
		return isset( $this->addons[ $offset ] );
	}

	/**
	 * Get offset
	 *
	 * @since 1.1
	 *
	 * @param mixed $offset Offset.
	 *
	 * @return Forminator_Integration|mixed|null
	 */
	#[\ReturnTypeWillChange]
	public function offsetGet( $offset ) {
		if ( isset( $this->addons[ $offset ] ) ) {
			return $this->addons[ $offset ];
		}

		return null;
	}

	/**
	 * Set offset
	 *
	 * @since 1.1
	 *
	 * @param mixed $offset Offset.
	 * @param mixed $value Offset value.
	 */
	#[\ReturnTypeWillChange]
	public function offsetSet( $offset, $value ) {
		$this->addons[ $offset ] = $value;
	}

	/**
	 * Unset offset
	 *
	 * @param mixed $offset Offset.
	 */
	#[\ReturnTypeWillChange]
	public function offsetUnset( $offset ) {
		unset( $this->addons[ $offset ] );
	}

	/**
	 * Count elements of an object
	 *
	 * @link  http://php.net/manual/en/countable.count.php
	 * @return int The custom count as an integer.
	 * </p>
	 * <p>
	 * The return value is cast to an integer.
	 * @since 1.1
	 */
	#[\ReturnTypeWillChange]
	public function count() {
		return count( $this->addons );
	}

	/**
	 * Get All registers slug of addons
	 *
	 * @since 1.1
	 * @return array
	 */
	public function get_slugs() {
		return array_keys( $this->addons );
	}

	/**
	 * To group array.
	 *
	 * @return array
	 */
	public function to_grouped_array() {
		$addons = array();

		foreach ( $this->addons as $slug => $addon_members ) {
			// force to offsetGet.
			// in case will added hook.
			$addon = $this[ $slug ];
			// enable later when implemented.
			// if ( ! $addon ) {.
			// continue;.
			// }.
			$addons[ $addon->get_slug() ] = $addon->to_array();
		}

		return $addons;
	}

	/**
	 * Return add-ons list as array
	 *
	 * @since 1.1
	 *
	 * @return array
	 */
	public function to_array() {
		$addons = array();

		foreach ( $this->addons as $slug => $addon_members ) {
			// force to offsetGet: enable when needed.
			// in case will added hook.
			$addon = $this[ $slug ];

			$addons[ $addon->get_slug() ] = $addon->to_array();
		}

		return $addons;
	}

	/**
	 * Return the current element
	 *
	 * @link  http://php.net/manual/en/iterator.current.php
	 * @return mixed Can return any type.
	 * @since 1.1
	 */
	#[\ReturnTypeWillChange]
	public function current() {
		return current( $this->addons );
	}

	/**
	 * Move forward to next element
	 *
	 * @link  http://php.net/manual/en/iterator.next.php
	 * @return void Any returned value is ignored.
	 * @since 1.1
	 */
	#[\ReturnTypeWillChange]
	public function next() {
		next( $this->addons );
	}

	/**
	 * Return the key of the current element
	 *
	 * @link  http://php.net/manual/en/iterator.key.php
	 * @return mixed scalar on success, or null on failure.
	 * @since 1.1
	 */
	#[\ReturnTypeWillChange]
	public function key() {
		return key( $this->addons );
	}

	/**
	 * Checks if current position is valid
	 *
	 * @link  http://php.net/manual/en/iterator.valid.php
	 * @return boolean The return value will be casted to boolean and then evaluated.
	 * Returns true on success or false on failure.
	 * @since 1.1
	 */
	#[\ReturnTypeWillChange]
	public function valid() {
		return key( $this->addons ) !== null;
	}

	/**
	 * Rewind the Iterator to the first element
	 *
	 * @link  http://php.net/manual/en/iterator.rewind.php
	 * @return void Any returned value is ignored.
	 * @since 1.1
	 */
	#[\ReturnTypeWillChange]
	public function rewind() {
		reset( $this->addons );
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 01 2025 09:31:58
giriqfky / giriqfky
0755
admin
--
July 01 2025 09:31:58
giriqfky / giriqfky
0755
contracts
--
July 01 2025 09:31:58
giriqfky / giriqfky
0755
class-addon-container.php
3.852 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-forminator-integration-settings-exception.php
1.724 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-exception.php
0.427 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-form-hooks.php
16.146 KB
December 24 2024 20:31:58
giriqfky / giriqfky
0644
class-integration-form-settings.php
9.936 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-hooks.php
30.442 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-poll-hooks.php
3.231 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-poll-settings.php
9.61 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-quiz-hooks.php
6.163 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-quiz-settings.php
12.048 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration-settings.php
24.155 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644
class-integration.php
79.729 KB
September 02 2024 15:32:28
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF