XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
iplugin.php
Go to the documentation of this file.
1
<?php
2
// $Id: iplugin.php 825 2011-12-09 00:06:11Z i.bitcero $
3
// --------------------------------------------------------------
4
// Red México Common Utilities
5
// A framework for Red México Modules
6
// Author: Eduardo Cortés <i.bitcero@gmail.com>
7
// Email: i.bitcero@gmail.com
8
// License: GPL 2.0
9
// --------------------------------------------------------------
10
15
abstract
class
RMIPlugin
16
{
17
protected
$info
= array();
18
protected
$settings
= array();
19
20
abstract
public
function
on_install
();
21
abstract
public
function
on_uninstall
();
22
abstract
public
function
on_update
();
23
abstract
public
function
on_activate
($q);
24
abstract
public
function
options
();
25
26
function
get_info
($name){
27
28
if
(!isset($this->
info
[$name]))
return
''
;
29
30
return
$this->
info
[$name];
31
32
}
33
34
public
function
info
(){
35
return
$this->info
;
36
}
37
38
public
function
settings
($name=
''
){
39
40
$settings
= empty($this->
settings
) ?
RMFunctions::get
()->plugin_settings($this->
get_info
(
'dir'
),
true
) :
$this->settings
;
41
42
if
(isset(
$settings
[$name]))
43
return
$settings
[$name];
44
45
return
$settings
;
46
47
}
48
49
50
}
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
class
iplugin.php
Generated on Sun Mar 17 2013 20:41:05 for XOOPS RMCommon Utilities by
1.8.3.1