RISE to Bloome Software
Log In    
Home
RISE
Expand RISERISE
Marshal
Download
 
 
r2bsoftware.se r2bsoftware.se
 
 
 
Click to hide navigation tree
PHP for MySQL code generator
The PHP code generator creates one database access class, one web service wrapper class and one proxy class for each interface in the RISE model. Each class i placed in a separate file. It also creates the WSDL - SOAP specification - file needed for other application when using the web services. All files are generated in UTF8 without BOM for ease of use.
 
You can either include the database access classes and the proxy classes in your existing PHP application or you can use the generated code a complete, ready-to-use, web services. To make use of the generated code directly in your own PHP application, simply throw away the web service files and the WSDL-file. The proxy classes exists solely for your convenience, it's easier to access the database through them than using the database access classes directly. 
 
The database access classes are stored in files named <model prefix>.DB.<Interface>.php. The file implements all methods found in the corresponding RISE model interface. The web service classes are in files named <model prefix>.WS.<Interface>.php and proxy class in <model prefix>.Proxy.<Interface>.php. The WSDL file is named <model prefix>.WSDL.<Interface>.xml.
 
To make use of the web service a configuration file is needed. It should contain the database connection information and should be named <model prefix>.config.php. This file isn't generated automatically, see connection string for further details.
 
The PHP code generator is available for the RISE Server. This way you can directly publish your PHP web services on your web server. The RISE Server will generate the config file as well. 
 
 
Note, the PHP code generator is currently only available for MySQL.