����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Gets the view state of UI elements to remember its viewable state
*
* Standard: PSR-2
* @link http://www.php-fig.org/psr/psr-2
*
* @package Duplicator
* @subpackage classes/ui
* @copyright (c) 2017, Snapcreek LLC
*
*/
// Exit if accessed directly
if (! defined('DUPLICATOR_VERSION')) exit;
class DUP_UI_ViewState
{
/**
* The key used in the wp_options table
*
* @var string
*/
private static $optionsViewStateKey = 'duplicator_ui_view_state';
/**
* Save the view state of UI elements
*
* @param string $key A unique key to define the UI element
* @param string $value A generic value to use for the view state
*
* @return bool Returns true if the value was successfully saved
*/
public static function save($key, $value)
{
$view_state = array();
$view_state = get_option(self::$optionsViewStateKey);
$view_state[$key] = $value;
$success = update_option(self::$optionsViewStateKey, $view_state);
return $success;
}
/**
* Gets all the values from the settings array
*
* @return array Returns and array of all the values stored in the settings array
*/
public static function getArray()
{
return get_option(self::$optionsViewStateKey);
}
/**
* Return the value of the of view state item
*
* @param type $searchKey The key to search on
* @return string Returns the value of the key searched or null if key is not found
*/
public static function getValue($searchKey)
{
$view_state = get_option(self::$optionsViewStateKey);
if (is_array($view_state)) {
foreach ($view_state as $key => $value) {
if ($key == $searchKey) {
return $value;
}
}
}
return null;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| class.ui.dialog.php | File | 5.85 KB | 0644 |
|
| class.ui.notice.php | File | 4.21 KB | 0644 |
|
| class.ui.screen.base.php | File | 2.87 KB | 0644 |
|
| class.ui.viewstate.php | File | 1.94 KB | 0644 |
|