Ejemplo n.º 1
0
                $content['subtotal'] = $content['total'] = $total;
            }
        }
        return $content;
    }
    /**
     * Clear a value from session by key
     *
     * @param $key
     */
    static function remove($key)
    {
        if (isset($_SESSION['learn_press'][$key])) {
            unset($_SESSION['learn_press'][$key]);
        }
    }
    /**
     * Get unique instance object of the class
     *
     * @return LP_Session|object
     */
    static function instance()
    {
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }
}
LP_Session::init();