Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Olivier Auverlot: "At my work (a universitary computer research laboratory), I'm alone to create all applications and databases. I don't know how I could do all the work without it. It's really a very productive software. I can focus on the database schemas and create quickly the user applications with a minimal amount of code to maintain".
Simon Greener: "A lot of work went in to designing our application database. PHP Generator allowed us to build a fully functional, professional looking, and functionally powerful web application from that database. It has freed us from worrying about low level code, enabling us to focus on the business requirements of the customer. The support provided is excellent with staff quickly producing answers to questions ranging from newbie to simple or complex. I highly recommend the product".

More

Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

GetApplication

Returns an instance of the Application class. Actually it is implemented via the Singleton pattern, so the same instance always will be returned.

 

Signature:

function GetApplication()

 

Example:

To check if the parameter custom_var is available, use the following code:

 

if (GetApplication()->IsGETValueSet('custom_var'))

   // found

   $params['custom_var'] = GetApplication()->GetGETValue('custom_var');

  else

   // not found. Assign a default value.   

   $params['custom_var'] = '5 (default)';



Prev Return to chapter overview Next