HEX
Server: LiteSpeed
System: Linux cde4.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: xluilhul (1144)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/xluilhul/public_html/wp-content/plugins/jet-engine/includes/classes/repeater-item.php
<?php
/**
 * Class ro implement single object of the repeater query item
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

#[AllowDynamicProperties]
class Jet_Engine_Queried_Repeater_Item {

	/**
	 * Index of specific item in current query
	 *
	 * @var integer
	 */
	private $_item_ID = 0;

	/**
	 * Numeric index of specific item in current query
	 *
	 * @var integer
	 */
	private $_index = 0;

	/**
	 * Constructor for the class
	 *
	 * @param object  $item
	 * @param integer $item_id
	 * @param integer $object_id
	 * @param integer $query_id
	 */
	public function __construct( $item, $item_id, $object_id = 0, $query_id = 0 ) {

		foreach ( get_object_vars( $item ) as $prop => $value) {
			$this->$prop = $value;
		}

		$this->_item_ID = $query_id;

		if ( $object_id ) {
			$this->_item_ID .= '-' . $object_id;
		}

		$this->_item_ID .= '-' . $item_id;
		$this->_index = absint( $item_id );
	}

	/**
	 * Get item ID
	 *
	 * @return string
	 */
	public function get_id() {
		return $this->_item_ID;
	}

	/**
	 * Get item index
	 *
	 * @return integer
	 */
	public function get_index() {
		return $this->_index;
	}

}