Ejemplo n.º 1
0
         *
         * @return boolean TRUE if successfully uninstalled.
         *
         * @see deps_x_xd_v141226_dev::___uninstall___()
         *
         * @throws exception If invalid types are passed through arguments list.
         */
        public static function ___uninstall___($confirmation = FALSE)
        {
            if (!is_bool($confirmation)) {
                throw new exception(sprintf(xd_v141226_dev::__('Invalid arguments: `%1$s`'), print_r(func_get_args(), TRUE)));
            }
            if (!$confirmation) {
                return FALSE;
            }
            // Added security.
            delete_option('xd__deps__last_ok');
            delete_option('xd__deps__notice__dismissals');
            if (!class_exists('deps_x_xd_v141226_dev')) {
                require_once dirname(__FILE__) . '/deps-x.php';
            }
            $x = new deps_x_xd_v141226_dev();
            return $x->___uninstall___(TRUE);
        }
    }
    # -----------------------------------------------------------------------------------------------------------------------------------
    # Initialize the XDaRk Core deps class.
    # -----------------------------------------------------------------------------------------------------------------------------------
    deps_xd_v141226_dev::initialize();
    // Also creates class alias.
}