PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/v1world.us/wp-content/themes/neve/header-footer-grid/Core/Settings/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/v1world.us/wp-content/themes/neve/header-footer-grid/Core/Settings/Defaults.php |
<?php /** * Defaults for HFG builder. * * @package HFG * @copyright Copyright (c) 2017, Marius Cristea * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 1.1.0 */ namespace HFG\Core\Settings; /** * Class Defaults * * @package HFG\Core\Settings */ class Defaults implements \ArrayAccess { /** * Holds default schema used for migration purposes or smart defaults. * * @var array|mixed|void Schema array. */ public static $defaults_schema = []; /** * Defaults constructor. */ public function __construct() { self::$defaults_schema = apply_filters( 'hfg_settings_schema', [] ); } /** * Check if we have the setting. * * @param mixed $offset Offset key. * * @return bool Is set? */ public function offsetExists( $offset ) { return isset( self::$defaults_schema[ $offset ] ); } /** * Return setting value. * * @param mixed $offset Offset id. * * @return mixed Value. */ public function offsetGet( $offset ) { return self::$defaults_schema[ $offset ]; } /** * Set value. * * @param mixed $offset Default key. * @param mixed $value Default value. */ public function offsetSet( $offset, $value ) { self::$defaults_schema[ $offset ] = $value; } /** * Remove default from collection. * * @param mixed $offset Offset key. */ public function offsetUnset( $offset ) { unset( self::$defaults_schema[ $offset ] ); } }