Last change
on this file since 7285 was
7196,
checked in by grum, 14 years ago
|
Commit first files
|
-
Property svn:executable set to
*
|
File size:
1.5 KB
|
Line | |
---|
1 | <?php |
---|
2 | /* ----------------------------------------------------------------------------- |
---|
3 | Plugin : Advanced Search Engine |
---|
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 | ASE_PIP : classe to manage plugin public pages |
---|
13 | |
---|
14 | --------------------------------------------------------------------------- */ |
---|
15 | |
---|
16 | include_once('ase_root.class.inc.php'); |
---|
17 | |
---|
18 | class ASE_PIP extends ASE_root |
---|
19 | { |
---|
20 | |
---|
21 | protected $css2; |
---|
22 | |
---|
23 | public function __construct($prefixeTable, $filelocation) |
---|
24 | { |
---|
25 | parent::__construct($prefixeTable, $filelocation); |
---|
26 | $this->css2 = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css"); |
---|
27 | $this->loadConfig(); |
---|
28 | $this->initEvents(); |
---|
29 | $this->load_lang(); |
---|
30 | } |
---|
31 | |
---|
32 | public function __destruct() |
---|
33 | { |
---|
34 | parent::__destruct(); |
---|
35 | } |
---|
36 | |
---|
37 | /* |
---|
38 | load language file |
---|
39 | */ |
---|
40 | public function load_lang() |
---|
41 | { |
---|
42 | global $lang; |
---|
43 | |
---|
44 | load_language('plugin.lang', ASE_PATH); |
---|
45 | } |
---|
46 | |
---|
47 | /* |
---|
48 | initialize events call for the plugin |
---|
49 | */ |
---|
50 | public function initEvents() |
---|
51 | { |
---|
52 | parent::initEvents(); |
---|
53 | |
---|
54 | add_event_handler('loc_end_page_header', array(&$this->css2, 'applyCSS')); |
---|
55 | } |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | /* ------------------------------------------------------------------------- |
---|
60 | FUNCTIONS TO MANAGE ASE |
---|
61 | ------------------------------------------------------------------------- */ |
---|
62 | |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | } //class |
---|
68 | |
---|
69 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.