OpenSencillo  2015.002
library Class Reference

Public Member Functions

 start ()
 export ()
 status ()

Data Fields

 $lib

Protected Attributes

 $all_data_sencillo
 $readsql
 $files

Private Member Functions

 createStructure ()
 openFiles ()

Detailed Description

Definition at line 28 of file lib_identificator.php.


Member Function Documentation

createStructure ( ) [private]

Create complet data structure

Definition at line 38 of file lib_identificator.php.

        {
            $this->lib=array("id"=>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('./fw_libraries/');
        }
export ( )

Export data obtained after main proces

Returns:
mixed [(left/right/center/foot/admin)] || [(numeric value)]

Definition at line 101 of file lib_identificator.php.

        {
            return $this->all_data_sencillo;
        }
openFiles ( ) [private]

Open modules

Definition at line 56 of file lib_identificator.php.

        {
            foreach($this->files as $value)
            {
                        $test=(($value!='.')&&($value!='..')&&($value!='lib_identificator.php')&&($value!='examples')?true:false);
                
                if(($value!='.')&&($value!='..')&&($value!='lib_identificator.php')&&($value!='examples'))
                {
                    $this->lib['id'][]=$value;
                }
            }

                foreach($this->lib['id'] as $value)
                {
                    try
                    {
                        //require("./fw_libraries/".$value);
                        $NAME=explode(".",$value);
                        $MOD_DESC=$NAME[0].','.$NAME[1];
                        $this->lib['name'][]=$NAME[2];
                        $this->lib['function'][]=$MOD_DESC;
                        $this->lib['version'][]=$VERSION;
                        $this->lib['status'][]='OK:'.$value;
                        $this->lib['path'][]="./fw_libraries/".$value;
                    }
                    catch(Exception $e)
                    {
                        $this->lib['status']=array('ERROR:'.$value.':'.$e);
                    }
                }
        }
start ( )

Start main mod_id proces

Definition at line 91 of file lib_identificator.php.

        {
            $this->createStructure();
            $this->openFiles();
        }
status ( )

Export informations about libraries

Returns:
array

Definition at line 110 of file lib_identificator.php.

        {
                return $this->lib;
        }

Field Documentation

$all_data_sencillo [protected]

Definition at line 30 of file lib_identificator.php.

$files [protected]

Definition at line 33 of file lib_identificator.php.

$lib

Definition at line 31 of file lib_identificator.php.

$readsql [protected]

Definition at line 32 of file lib_identificator.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables