-
Notifications
You must be signed in to change notification settings - Fork 4
/
upd.emma.php
executable file
·88 lines (66 loc) · 1.94 KB
/
upd.emma.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Emma
*
* @package Emma
* @subpackage ThirdParty
* @category Modules
* @author Maju Ansari
* @link http://www.empressem.in
*/
class Emma_upd {
var $version = '1.0';
var $module_name = "Emma";
function Emma_upd( $switch = TRUE )
{
// Make a local reference to the ExpressionEngine super object
$this->EE =& get_instance();
}
/**
* Installer for the Emma module
*/
function install()
{
$data = array(
'module_name' => $this->module_name,
'module_version' => $this->version,
'has_cp_backend' => 'y'
);
$this->EE->db->insert('modules', $data);
//
// Add additional stuff needed on module install here
//
return TRUE;
}
/**
* Uninstall the Emma module
*/
function uninstall()
{
$this->EE->db->select('module_id');
$query = $this->EE->db->get_where('modules', array('module_name' => $this->module_name));
$this->EE->db->where('module_id', $query->row('module_id'));
$this->EE->db->delete('module_member_groups');
$this->EE->db->where('module_name', $this->module_name);
$this->EE->db->delete('modules');
$this->EE->db->where('class', $this->module_name);
$this->EE->db->delete('actions');
$this->EE->db->where('class', $this->module_name.'_mcp');
$this->EE->db->delete('actions');
return TRUE;
}
/**
* Update the Emma module
*
* @param $current current version number
* @return boolean indicating whether or not the module was updated
*/
function update($current = '')
{
return FALSE;
}
/** @return Devkit_code_completion_helper */ function EE() {if(!isset($this->EE)){$this->EE =& get_instance();}return $this->EE;}
}
/* End of file upd.emma.php */
/* Location: ./system/expressionengine/third_party/emma/upd.emma.php */
/* Generated by DevKit for EE - develop addons faster! */