[5550] | 1 | <?php |
---|
| 2 | /* ----------------------------------------------------------------------------- |
---|
| 3 | Plugin : Grum Plugin Classes - 3 |
---|
| 4 | Author : Grum |
---|
| 5 | email : grum@piwigo.org |
---|
| 6 | website : http://photos.grum.fr |
---|
| 7 | |
---|
| 8 | << May the Little SpaceFrog be with you ! >> |
---|
| 9 | ------------------------------------------------------------------------------ |
---|
| 10 | See main.inc.php for release information |
---|
| 11 | |
---|
| 12 | UserStat_AIM : classe to manage plugin integration into plugin menu |
---|
| 13 | |
---|
| 14 | --------------------------------------------------------------------------- */ |
---|
| 15 | |
---|
| 16 | if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } |
---|
| 17 | |
---|
| 18 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); |
---|
| 19 | include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCCss.class.inc.php'); |
---|
| 20 | |
---|
| 21 | class GPC_AIM extends CommonPlugin |
---|
| 22 | { |
---|
| 23 | protected $css = null; |
---|
| 24 | |
---|
| 25 | public function __construct($prefixeTable, $filelocation) |
---|
| 26 | { |
---|
| 27 | $this->setPluginName("Grum Plugin Classes"); |
---|
| 28 | $this->setPluginNameFiles("gpc"); |
---|
| 29 | parent::__construct($prefixeTable, $filelocation); |
---|
| 30 | $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles().".css"); |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | public function __destruct() |
---|
| 34 | { |
---|
| 35 | unset($this->css); |
---|
| 36 | parent::__destruct(); |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | /* |
---|
| 40 | initialize events call for the plugin |
---|
| 41 | */ |
---|
| 42 | function initEvents() |
---|
| 43 | { |
---|
| 44 | add_event_handler('get_admin_plugin_menu_links', array(&$this, 'pluginAdminMenu') ); |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | /* --------------------------------------------------------------------------- |
---|
| 50 | Function needed for plugin activation |
---|
| 51 | --------------------------------------------------------------------------- */ |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | } // GPC_AIM class |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | ?> |
---|