%PDF- %PDF-
Direktori : /var/www/html/bbw/farmaci/wordpress/wp-content/plugins/debug-objects/inc/ |
Current File : /var/www/html/bbw/farmaci/wordpress/wp-content/plugins/debug-objects/inc/class-super_var_dump.php |
<?php /** * Add super var dump function to use in dev installs * * @package Debug Objects * @subpackage Super var dump * * Kudos to Eric Lewis <http://www.ericandrewlewis.com/> for the function super_var_dump() * @see https://github.com/ericandrewlewis/super-var-dump * @author Frank Bültge * @since 2.0.1 */ if ( ! function_exists( 'add_filter' ) ) { echo "Hi there! I'm just a part of plugin, not much I can do when called directly."; exit; } if ( class_exists( 'Debug_Objects_Super_Var_Dump' ) ) return NULL; class Debug_Objects_Super_Var_Dump { protected static $classobj = NULL; /** * Handler for the action 'init'. Instantiates this class. * * @access public * @return Debug_Objects_Super_Var_Dump|null $classobj */ public static function init() { NULL === self::$classobj and self::$classobj = new self(); return self::$classobj; } public function __construct() { if ( ! current_user_can( '_debug_objects' ) ) return; $this->include_super_var_dump(); } public function include_super_var_dump() { require_once( plugin_dir_path( __FILE__ ) . 'super-var-dump/super-var_dump.php' ); } } // end class