PHP Classes

File: examples/example1.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP LGCF Loader   examples/example1.php   Download  
File: examples/example1.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP LGCF Loader
Load classes and functions when needed
Author: By
Last change: add new version 3.0.0 changes
Date: 5 years ago
Size: 1,019 bytes
 

Contents

Class file image Download
<?php


require('../PersistentGlobalsMaker.php');

require_once(
'../LGCF_Loader.class.php');

echo
'<pre>';
//load classes only if not loaded
   
// classes_loader('../myclasses.php');//change your classes path here;
   
// load functions only if not loaded
   
// functions_loader('../myfunctions.php','function');//change your functions path here;

   
$x=call_Gcl('test1',array(4,5,6));
    print(
$x->just_for_test());
    echo
'<br>';
   
   
$x=call_Gcl('test2',array(4,5,6));
    print(
$x->just_for_test());
    echo
'<br>';
   
$x=call_Gcl('test3',array(4,5,6));
    print(
$x->just_for_test());
    echo
'<br>';
   
$x=call_Gcl('test4',array(4,5,6));
    print(
$x->just_for_test());
    echo
'<br>';
   
$x=call_Gcl('test',array(4,7,6));
    print(
$x->just_for_test());
    echo
'<br>';
   
call_glfunc('kakao\Show_me_hello');


foreach(
kakao\fortest() as $x){
echo
$x.'<br>';
}

echo
kakao\Show_me_hello();

var_dump(LGCF_LOADER::gAc(),LGCF_LOADER::gAf(),LGCF_LOADER::gP(),call_Gcl('ProjectInfoCollector',array(__DIR__)));

?>