forked from franz-josef-kaiser/current-admin-info
-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap.class.php
40 lines (35 loc) · 1.04 KB
/
bootstrap.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
defined( 'ABSPATH' ) OR exit;
/**
* Plugin Name: Current admin screen info
* Description: Show information about contextual hooks and availability of globals in the admin UI.
* Version: 1.1
* Author: Franz Josef Kaiser <wecodemore@gmail.com>
* Author URI: http://unserkaiser.com
* Contributers: Stephen Harris
* License: The MIT License (MIT)
* License URI: http://www.tldrlegal.com/license/mit-license
*
* Copyright: © Franz Josef Kaiser 2011-2012
*/
add_action( 'plugins_loaded', array( 'current_screen_data_bootstrap', 'init' ), 5 );
final class current_screen_data_bootstrap
{
private static $instance;
private $includes = array(
'base.abstract'
,'hooks.class'
,'screen.class'
,'globals.class'
);
public static function init()
{
null === self :: $instance AND self :: $instance = new self;
return self :: $instance;
}
public function __construct()
{
foreach ( $this->includes as $file )
require_once plugin_dir_path( __FILE__ )."inc/{$file}.php";
}
}