aprCGI Class Reference

Order Now

The aprCGI Class is made up of Variables and Methods just like any other Xbase++ Class.

The important difference here is that the entire page (User Interface) is built by the class at the server and then displayed when the transaction has completed. Variables are reset between interactions of the User and the CGI applications.

 

 

VARs

 

aprCGIVersion

READONLY Library Version Number

 

aVars

An Array of the Server Variables

 

DefaultBR

Default Value for Sending <BR> at end of Calls

 

DefaultWrite

Default Value for Sending Form Elements to

 

HTTPVer

Preferred HTML Version (Server overrides Value)

 

LogFile

Error Log File Name

 

LogPath

Path to Error Log directory

 

MetaVars

Array of Meta Variables for inserting in <HEAD>

 

Referer

Referring URL to this CGI Application

 

Remote_Addr

Remote Address of Requester

 

Request_Method

Method in which the CGI Library was invoked

 

ShowError

If Error occurs, .T. = Send Error back to Browser, .F. = Don't

 

 

 

METHODs

 

New()

Library Initialization

 

Destroy()

Close Library and Release Resources

 

 

 

 

GetServerVar()

Get Server / Enviromental Variable

 

GetVar()

Variable/Value Pair

 

 

 

   Low Level Class Methods

 

Read()

Read directly from Server (Low Level)

 

Write()

Write directly to Server (Low Level)

 

 

 

   Mutually Exclusive Methods. One is required per session.

 

Start()

Start a normal Transaction Session with Browser

 

Message()

Write Message out to Browser. Ends Session

 

Redirect()

Redirect Browser to another File / URL. Ends Session

 

SendFile()

Send File to Browser. Ends Session

 

 

 

   General Page Layout

 

Header()

Send Header Info: <HTML>, <HEAD> and <TITLE>

 

Footer()

Close the Page </BODY> and </HTML>

 

Body()

Send <BODY> Tag and associated Information

 

Image()

Send an <IMG> Tag to Browser

 

Link()

Creates a Link ( <a href...>

 

SetMeta()

Insert META Tags in :Header()

 

 

 

   Table components

 

TableStart()

Start a <TABLE ... >

 

TableEnd()

Close a </TABLE>

 

 

 

 

Data()

Send an array to fill a Table (Cells)

 

Row()

Write Row in Table based on Data(Array or Text)

 

Cell()

Send Data or an array to fill a Table (Cells)

 

 

 

   Form Management

 

FormStart()

Writes the Starting information of the <FORM ... >

 

FormEnd()

Close out the </FORM>

 

 

 

 

Button()

Write a Button ("Submit", "Reset", "Image", etc.)

 

Checkbox()

Creates a Checkbox Control

 

RadioButton()

Creates a RadioButton Control

 

 

 

 

SelectStart()

Start ListBox Page Element <SELECT ... >

 

SelectOption()

Add Options to a ListBox

 

SelectEnd()

Close out the ListBox </SELECT>

 

 

 

 

SLE()

Writes an <INPUT ... > Single Line Syntax

 

MLE()

Writes an <TEXTAREA ... > Multi-Line Syntax

 

SetVar()

Writes <INPUT ... > Statement (compliment of GetVar)

Contents