1616 */
1717 class myApp extends PHPWebAppInfosHolder
1818 {
19-
19+
20+ // to declare your app directly with the given variables of the class
2021 // modify those variables to your wish
21- var $ packageID = "yt.pylott.keyphp.example " ;
22- var $ infos = "an example application made using keyphp " ;
23- var $ author = "Louis Bertrand <adressepro111@pylott.yt> " ;
24- var $ version = "1.0.0.BETA " ;
25- var $ mainClass = "main " ;
22+ // var $packageID = "yt.pylott.keyphp.example";
23+ // var $infos = "an example application made using keyphp";
24+ // var $author = "Louis Bertrand <adressepro111@pylott.yt>";
25+ // var $version = "1.0.0.BETA";
26+ // var $mainClass = "main";
2627
2728 /**
2829 * if you want to use the constructor,
29- * replace the previous variables with thoose ones
30+ * replace the previous variables with those ones
3031 */
3132
32- // var $packageID;
33- // var $infos;
34- // var $author;
35- // var $version;
36- // var $mainClass;
33+ /**appPackageId ex: com.organization.package*/
34+ var $ packageID = null ;
35+ /**appInfos ex: AI algorithm*/
36+ var $ infos = null ;
37+ /**appAuthor ex: Leonard Da Vinci*/
38+ var $ author = null ;
39+ /**appVersion ex: v2763:22:CZA-Z.1.BETA or v1.0*/
40+ var $ version = null ;
41+ /**mainClass ex: main*/
42+ var $ mainClass = null ;
3743
3844 // or use construct to
3945 public function __construct ($ packageID = "" ,$ infos = "" ,$ author = "" ,$ version = "" ,$ mainClass = "" ) {
@@ -55,12 +61,11 @@ public function __construct($packageID = "",$infos = "",$author = "",$version =
5561 }
5662
5763 }
58-
64+
5965 // here the application is declared
6066 // you can declare your app with construct method or directly into the class
6167 // previously declared
62- // in future releases, a more elegant way would be appricieated
63- $ myAppInfos = new myApp ();
68+ $ myAppInfos = new myApp ($ GLOBAL_packageID ,$ GLOBAL_infos ,$ GLOBAL_author ,$ GLOBAL_version ,$ GLOBAL_mainClass );
6469
6570 // we require the main class
6671 require_once ("app/ " .$ myAppInfos ->mainClass .".php " );
@@ -94,3 +99,4 @@ public function __construct($packageID = "",$infos = "",$author = "",$version =
9499 print ("Program ended with return value " .$ onStopResponse ."\r\n" );
95100 exit ;
96101 }
102+
0 commit comments