-
Notifications
You must be signed in to change notification settings - Fork 3
/
extension.driver.php
59 lines (47 loc) · 1.12 KB
/
extension.driver.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Copyright: Deux Huit Huit 2016
* LICENCE: MIT https://deuxhuithuit.mit-license.org;
*/
if(!defined("__IN_SYMPHONY__")) die("<h2>Error</h2><p>You cannot directly access this file</p>");
/**
*
* @author Deux Huit Huit
* https://deuxhuithuit.com/
*
*/
class extension_sri extends Extension {
/**
* Name of the extension
* @var string
*/
const EXT_NAME = 'Subresource Integrity';
/* ********* INSTALL/UPDATE/UNINSTALL ******* */
/**
* Creates the table needed for the settings of the field
*/
public function install() {
return true;
}
/**
* This method will update the extension according to the
* previous and current version parameters.
* @param string $previousVersion
*/
public function update($previousVersion = false) {
$ret = true;
if (!$previousVersion) {
$previousVersion = '0.0.1';
}
// less than 0.0.1
if ($ret && version_compare($previousVersion, '0.0.1', '<')) {
}
return $ret;
}
/**
* Drops the table needed for the settings of the field
*/
public function uninstall() {
return true;
}
}