class-base.php
652 Bytes
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
41
42
<?php
class WPF_Integrations_Base {
public function __construct() {
$this->init();
}
/**
* Returns all registered plugin integrations, internal and external @todo not sure if necessary
*
* @access public
* @since 1.0
* @return void
*/
public function get_integrations() {
$integrations = array();
foreach(get_declared_classes() as $class) {
if(is_subclass_of( $class, 'WPF_Integrations_Base' ))
$integrations[] = $class;
}
return $integrations;
}
/**
* Gets things started
*
* @access public
* @since 1.0
* @return void
*/
public function init() {
// intentionally left blank
}
}