-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtagging_base.class.inc
More file actions
40 lines (39 loc) · 909 Bytes
/
tagging_base.class.inc
File metadata and controls
40 lines (39 loc) · 909 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
<?php
class tagging_base {
private static $instance = null;
/**
*
* @return tagging_base
*/
public static function instance() {
if(!tagging_base::$instance) {
$impl = '';
if(defined('VERSION')) {
if(strpos(VERSION, '6') === 0) {
$impl = 'tagging_d6';
require_once(drupal_get_path('module', 'tagging') . '/tagging_d6.class.inc');
} else {
$impl = 'tagging_d7';
require_once(drupal_get_path('module', 'tagging') . '/tagging_d6.class.inc');
require_once(drupal_get_path('module', 'tagging') . '/tagging_d7.class.inc');
}
}
tagging_base::$instance = new $impl();
}
return tagging_base::$instance;
}
/**
*
* @return array
*/
public function hook_menu() {
return array();
}
/**
*
* @return array
*/
public function hook_theme() {
return array();
}
}