Overview

Namespaces

  • None
  • VSP
    • Core
      • Abstracts
      • Interfaces
      • Traits
        • WC_Compatibility
    • Deprecation
    • Helper
    • Modules
      • Addons
      • Logger

Classes

  • VSP_Framework_Loader

Functions

  • vsp_add_wc_required_notice
  • vsp_ajax_action
  • vsp_current_screen
  • vsp_date_format
  • vsp_delete_cache
  • vsp_doing_it_wrong
  • vsp_force_load
  • vsp_force_load_vendors
  • vsp_get_cache
  • vsp_get_cache_defaults
  • vsp_get_file_paths
  • vsp_get_logger
  • vsp_get_time_in_seconds
  • vsp_is_admin
  • vsp_is_ajax
  • vsp_is_cron
  • vsp_is_error
  • vsp_is_frontend
  • vsp_is_heartbeat
  • vsp_is_json
  • vsp_is_request
  • vsp_is_screen
  • vsp_json_last_error
  • vsp_list_files
  • vsp_list_log_files
  • vsp_load_core_assets
  • vsp_load_file
  • vsp_log_msg
  • vsp_logger
  • vsp_make_log_list_tree
  • vsp_maybe_load
  • vsp_placeholder_img
  • vsp_print_log_files_ui
  • vsp_register_assets
  • vsp_register_plugin
  • vsp_send_callback_error
  • vsp_send_callback_success
  • vsp_send_json_callback
  • vsp_set_cache
  • vsp_set_time_limit
  • vsp_slashit
  • vsp_time_format
  • vsp_unslashit
  • vsp_url
  • vsp_validate_required_plugin
  • Overview
  • Namespace
  • Class

Class VSP_Framework_Loader

Class VSP_Framework_Loader

Final
Author: Varun Sridharan varunsridharan23@gmail.com
Located at vsp-init.php
Methods summary
public
# __construct( )

VSP_Framework_Loader constructor.

VSP_Framework_Loader constructor.

public array
# add_extra_info( array $_meta = array() )

Adds Custom Information To SysPage.

Adds Custom Information To SysPage.

Parameters

$_meta
.

Returns

array
public
# load_framework( )

Loads Framework From A Plugin which has the latest version

Loads Framework From A Plugin which has the latest version

public static VSP_Framework_Loader
# instance( )

Creates A Static Instances

Creates A Static Instances

Returns

VSP_Framework_Loader
public
# add( string $version = '', array $data = array() )

Stores Framework Version & its details

Stores Framework Version & its details

Parameters

$version
framework version.
$data
other information.

Returns


$this
public
# register_plugin( string $plugin_path = '', string $framework_path = '/vsp-framework/' )

Registers a plugin and stores its deta to $data

Registers a plugin and stores its deta to $data

Parameters

$plugin_path
Exact Plugin path.
$framework_path
Foldername of the framework path.

Returns


$this
public array
# get( )

Returns all registered plugins information

Returns all registered plugins information

Returns

array
public array
# loaded( )

Returns currectly loaded framework information

Returns currectly loaded framework information

Returns

array
public boolean
# register_callback( array $callback = array() )

Registers a callback to trigger when vsp_framework is loaded usefull for plugins that dose not path vsp in-it

Registers a callback to trigger when vsp_framework is loaded usefull for plugins that dose not path vsp in-it

Parameters

$callback
.

Returns

boolean
public
# load_plugins( )

Loads all plugin that is registered with VSP Framework

Loads all plugin that is registered with VSP Framework

Properties summary
public static VSP_Framework_Loader $_instance

Variable to store VSP_Framework_Loader Class instance

Variable to store VSP_Framework_Loader Class instance

# null
public static array $_loaded

Stores the loaded vsp framework information

Stores the loaded vsp framework information

# array()
public static array $data

Maintaines All Plugins VSP Framework Details and provides them when required

Maintaines All Plugins VSP Framework Details and provides them when required

# array()
public static array $callbacks

Array of callback to init all plugins after vsp_framework loaded

Array of callback to init all plugins after vsp_framework loaded

# array()
API documentation generated by ApiGen