Numiton

NOTE: To use the advanced features of this site you need javascript turned on.

Home Products nTile PtoJ Features Advanced Object extraction

Advanced Features

Object extraction

PHP did not have object-oriented capabilities until version 4, while subsequent versions maintained backwards compatibility. This means that PHP applications can be written in a completely procedural manner.

nTile PtoJ translates PHP applications making full use of Java™'s object-oriented character. Each PHP file is transformed into a class, while each explicitly declared PHP class is moved into its own file.

 

Variables used throughout the application are explicitly declared in either:

  • a special class that encompasses global variables
  • a regular class, generated from PHP code
  • a function, if the variable is local

The emulation of the PHP runtime is partitioned into specialized classes, for better encapsulation and maintenance.

To see examples of object extraction, please consult the Samples section.