1 | <?php |
||
10 | abstract class BaseDriver implements DriverInterface { |
||
11 | |||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | public function getRandom() { |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function bootstrap() { |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public function isBootstrapped() { |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function userCreate(\stdClass $user) { |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function userDelete(\stdClass $user) { |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function processBatch() { |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function userAddRole(\stdClass $user, $role) { |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function fetchWatchdog($count = 10, $type = NULL, $severity = NULL) { |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function clearCache($type = NULL) { |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function clearStaticCaches() { |
||
77 | throw new UnsupportedDriverActionException($this->errorString('clear static caches'), $this); |
||
78 | } |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function createNode($node) { |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function nodeDelete($node) { |
||
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function runCron() { |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function createTerm(\stdClass $term) { |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function termDelete(\stdClass $term) { |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function roleCreate(array $permissions) { |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function roleDelete($rid) { |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | public function isField($entity_type, $field_name) { |
||
135 | |||
136 | /** |
||
137 | * {@inheritdoc} |
||
138 | */ |
||
139 | public function configGet($name, $key) { |
||
142 | |||
143 | /** |
||
144 | * {@inheritdoc} |
||
145 | */ |
||
146 | public function configSet($name, $key, $value) { |
||
149 | |||
150 | /** |
||
151 | * Error printing exception. |
||
152 | * |
||
153 | * @param string $error |
||
154 | * The term, node, user or permission. |
||
155 | * |
||
156 | * @return string |
||
157 | * A formatted string reminding people to use an API driver. |
||
158 | */ |
||
159 | private function errorString($error) { |
||
162 | |||
163 | /** |
||
164 | * {@inheritdoc} |
||
165 | */ |
||
166 | public function createEntity($entity_type, $entity) { |
||
169 | |||
170 | /** |
||
171 | * {@inheritdoc} |
||
172 | */ |
||
173 | public function entityDelete($entity_type, $entity) { |
||
176 | |||
177 | /** |
||
178 | * {@inheritdoc} |
||
179 | */ |
||
180 | public function moduleInstall($module_name) { |
||
183 | |||
184 | /** |
||
185 | * {@inheritdoc} |
||
186 | */ |
||
187 | public function moduleUninstall($module_name) { |
||
190 | |||
191 | } |
||
192 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.