|
OpenSencillo
2015.002
|
Inheritance diagram for modules:
Collaboration diagram for modules:Public Member Functions | |
| start () | |
| export () | |
| status () | |
Protected Attributes | |
| $all_data_sencillo | |
| $modul_id | |
| $readsql | |
| $files | |
Private Member Functions | |
| createStructure () | |
| openFiles () | |
Definition at line 28 of file mod_identificator.php.
| createStructure | ( | ) | [private] |
Create complet data structure
Definition at line 38 of file mod_identificator.php.
{
$this->modul_id=array("moduleid"=>array(),
"function"=>array(),
"boxid"=>array(),
"status"=>array());
$this->all_data_sencillo=array("left"=>array(),
"center"=>array(),
"right"=>array(),
"foot"=>array(),
"admin"=>array());
$this->readsql="SELECT * FROM cms_boxid";
$this->files = scandir('./');
}
| export | ( | ) |
Export data obtained after main proces
Definition at line 95 of file mod_identificator.php.
{
return $this->all_data_sencillo;
}
| openFiles | ( | ) | [private] |
Open modules
Definition at line 56 of file mod_identificator.php.
{
foreach($this->files as $value)
{
if(($value!='.')&&($value!='..')&&($value!='mod_identificator.php')&&($value!='examples'))
{
$this->modul_id['moduleid']=$value;
}
}
foreach($this->modul_id['moduleid'] as $value)
{
try
{
require("./cms/cms_modules/".$value."/index.php");
$this->modul_id['moduleid'][]=$value;
$this->modul_id['function'][]=$MOD_DESC;
$this->modul_id['boxid'][]=$BOXID;
$this->modul_id['status'][]='OK:'.$value;
}
catch(Exception $e)
{
$this->modul_id['status']=array('ERROR:'.$value.':'.$e);
}
}
}
| start | ( | ) |
Start main mod_id proces
Definition at line 85 of file mod_identificator.php.
{
$this->createStructure();
$this->openFiles();
}
| status | ( | ) |
Export informations about modules
Definition at line 104 of file mod_identificator.php.
{
return $this->modul_id;
}
$all_data_sencillo [protected] |
Definition at line 30 of file mod_identificator.php.
$files [protected] |
Definition at line 33 of file mod_identificator.php.
$modul_id [protected] |
Definition at line 31 of file mod_identificator.php.
$readsql [protected] |
Definition at line 32 of file mod_identificator.php.