source: extensions/GrumPluginClasses/gpc_aim.class.inc.php @ 9066

Last change on this file since 9066 was 6948, checked in by grum, 14 years ago

Version 3.2.0
Small changes (css, comment, fix minor bug & functionnalies)

File size: 1.6 KB
Line 
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
16if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
17
18include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
19include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCCss.class.inc.php');
20
21class 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?>
Note: See TracBrowser for help on using the repository browser.