Open Sencillo
2014.008
Main Page
Related Pages
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
mod_identificator.php
Go to the documentation of this file.
1
<?php
2
/*~ mod_identificator.php
3
.---------------------------------------------------------------------------.
4
| Software: Sencillo Module Identificator |
5
| Version: 2014.007 |
6
| Contact:
[email protected]
|
7
| ------------------------------------------------------------------------- |
8
| Author: Bc. Peter Horváth (original founder) |
9
| Copyright (c) 2014, Bc. Peter Horváth. All Rights Reserved. |
10
| ------------------------------------------------------------------------- |
11
| License: Distributed under the General Public License (GPL) |
12
| http://www.gnu.org/copyleft/gpl.html |
13
| This program is distributed in the hope that it will be useful - WITHOUT |
14
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
15
| FITNESS FOR A PARTICULAR PURPOSE. |
16
'---------------------------------------------------------------------------'
17
~*/
28
class
modules
extends
mysql
29
{
30
protected
$all_data_sencillo
;
31
protected
$modul_id
;
32
protected
$readsql
;
33
protected
$files
;
34
38
private
function
createStructure()
39
{
40
$this->modul_id=array(
"moduleid"
=>array(),
41
"function"
=>array(),
42
"boxid"
=>array(),
43
"status"
=>array());
44
$this->all_data_sencillo=array(
"left"
=>array(),
45
"center"
=>array(),
46
"right"
=>array(),
47
"foot"
=>array(),
48
"admin"
=>array());
49
$this->readsql=
"SELECT * FROM cms_boxid"
;
50
$this->files = scandir(
'./'
);
51
}
52
56
private
function
openFiles()
57
{
58
foreach
($this->files as $value)
59
{
60
if
(($value!=
'.'
)&&($value!=
'..'
)&&($value!=
'mod_identificator.php'
)&&($value!=
'examples'
))
61
{
62
$this->modul_id[
'moduleid'
]=$value;
63
}
64
}
65
foreach
($this->modul_id[
'moduleid'
] as $value)
66
{
67
try
68
{
69
require(
"./cms/cms_modules/"
.$value.
"/index.php"
);
70
$this->modul_id[
'moduleid'
][]=$value;
71
$this->modul_id[
'function'
][]=$MOD_DESC;
72
$this->modul_id[
'boxid'
][]=$BOXID;
73
$this->modul_id[
'status'
][]=
'OK:'
.$value;
74
}
75
catch
(Exception $e)
76
{
77
$this->modul_id[
'status'
]=array(
'ERROR:'
.$value.
':'
.$e);
78
}
79
}
80
}
81
85
public
function
start
()
86
{
87
$this->createStructure();
88
$this->openFiles();
89
}
90
95
public
function
export
()
96
{
97
return
$this->all_data_sencillo
;
98
}
99
104
public
function
status
()
105
{
106
return
$this->modul_id
;
107
}
108
}
109
?>
modules\$modul_id
$modul_id
Definition:
mod_identificator.php:31
modules\$all_data_sencillo
$all_data_sencillo
Definition:
mod_identificator.php:30
modules\status
status()
Definition:
mod_identificator.php:104
modules\start
start()
Definition:
mod_identificator.php:85
modules\$files
$files
Definition:
mod_identificator.php:33
modules
Definition:
mod_identificator.php:28
modules\$readsql
$readsql
Definition:
mod_identificator.php:32
mysql
Definition:
core_sql.php:27
modules\export
export()
Definition:
mod_identificator.php:95
fw_modules
mod_identificator.php
Generated on Mon Aug 11 2014 23:52:16 for Open Sencillo by
1.8.6