OwlCyberSecurity - MANAGER
Edit File: WPGradeOptionDriver_Redux.php
<?php /* This file is property of Pixel Grade Media. You may NOT copy, or redistribute * it. Please see the license that came with your copy for more information. */ /** * @package wpgrade * @category core * @author Pixel Grade Team * @copyright (c) 2013, Pixel Grade Media */ class WPGradeOptionDriver_Redux extends WPGradeOptionDriver { /** * @var Redux_Options */ protected $redux = null; /** * ... */ function __construct($redux_options_instance) { $this->redux = $redux_options_instance; } /** * @return mixed */ function get($key, $default = null) { $value = $this->redux->get($key, null); if ($value !== null) { return $value; } else { // null, assuming key is not set return $default; } } /** * @return static $this */ function set($key, $value) { $this->redux->set($key, $value); return $this; } } # class