ixRAD for PHP Component Reference
Your application inherits from it automatically.
Functions
-
SetCurrentFormS
( $FormName ) - Sets the visible Form by its Name property
-
JumpToURL ( $Target, $ShutDown ) - Leaves web application to
the $Target URL. If $ShutDown is true (boolean), then clears application data
from the current session. If false, then if the user types in the Web
Application's URL into the same browser - that was not shut down, and
reopened - he gets the Web App in a state as he leaved it.
Events
-
AfterSystemInit() - If you have this function in the Web
Application Code, it automatically executes right after web application start.
It's a good place to initialize system-wide variables, or execute custom
startup code. See example project 'Menu'.
Able to handle click events.
Properties
-
Text - any string - get/set
The caption of the button
Events
-
Click - write event handler in the Parent Form's code, e.g:
function Button1Click()
Able to preserve it's checked state
Properties
-
Checked - boolean of true or false - get/set
Able to preserve it's selected item state
Properties
-
Items
- array of strings - get/set - Individual item strings should not begin or end
with space, because browsers don't show, and don't post them.
-
SelectedItem - string - get/set
Able to handle children - can/must be extended. Do not use directly. Panel
inherits it's properties and methods.
Properties
-
Layout
- string - get/set - 'grid' / 'flow' / 'template' - not every successor
implements all layouts
-
Controls
- array of references - get/set - controls that this container directly
displays. It is not the Form-member object reliationship, but the
Parent-Controls reliationship.
-
TemplateSource - string - filename of the template: can be
anywhere on the webserver, but preferred in the 'templates' subdir of the web
app
Able to be positioned by a Container - must be extended by controls. Do not
use directly. Every control inherits it's properties and methods.
Properties
-
WebName
- string - the system sets it, currently is the same as the php name, but it
will change to a system-wide unique one. For identifying purposes by the system
only.
-
Left, Top
- strings in CSS format - get/set - the IDE Designer sets them, but you can
manipulate them later. Only valid in grid layout.
-
Width, Height
- strings in CSS format - get/set - the IDE Designer sets them, but you can
manipulate them later.
-
StyleClass
- string of CSS Class - get/set
-
InlineStyle
- string of CSS Inline Style - get/set
-
OwnerForm - reference - readonly/don't set it - it is not the
Parent-Controls reliationship, but Form-member object reliationship.
The system instantiates them.
Properties
-
Name
- string - get/set
-
AppRef
- reference to the only $App object - readonly -You can reach other
forms, and controls through it.
-
LinkedStyles
- array strings - get/set - only the 0. string is used currently. It is the
filename of the Linked CSS File.
-
EmbeddedStyles - array strings - get/set - only the 0. string
is used currently. Put only the CSS content in it!
Events
-
function AfterCreate ():
If you have this function in the Form's Code, it executes right after form
creation . It's a good place to initialize in-form-declared variables, or
execute form-startup custom code.
Raw HTML properly positioned by the system.
Properties
-
HTML - string - get/set - the content
HyperLink control, able to do the following:
-
If the TargetForm property is filled with the Name of a Form, then jumps there
-
If an event handler exists for his name then the system executes it
Properties
-
Text
- string -get/set - the text displayed as the HyperLink
-
TargetForm - string - get/set - the Form Name to jump to
Events
-
Click - write event handler in the Parent Form's code
Properties
-
Text
- string -get/set - currently not used, in the future it will be the
alternative text for the html image
-
Source - string - get/set -image source
Properties
-
Text
- string -get/set - currently not used, in the future it will be the possible
caption
-
Source - string - get/set - image source
Events
-
Click - write event handler in the Parent Form's code
Properties
-
Text - string -get/set - text, in grid layout useful for
putting paragraphs on the form, because CSS styling is available, as by any
control
Able to preserve it's selected item state
Properties
-
Items
- array of strings - get/set - Individual item strings should not begin or
end with space, because browsers don't show, and don't post them.
-
SelectedItem - string - get/set
Represents a MySQL query result in tabular format. The user can select one row,
and the developer can inspect the selected row's index & data in the
next event handler.
In a grid layout container, the datagrid holds its size, and scrolls. In a
template or flow layout it stretches as needed.
Properties
-
Text
- string - currently not displayed, it will be the optional header text
-
Host
- string
-
Database
- string
-
Username
- string
-
Password
- string
-
SQLQuery
- string - the SQL itself
-
KeyfieldTable
- string - reserved for future use
-
KeyfieldName
- string - reserved for future use
-
HeaderCellStyleClass
- string - CSS Class of column headers
-
HeaderCellInlineStyle
- string - inline CSS Style of column headers
-
DataCellStyleClass
- string - CSS Class of data cells
-
DataCellInlineStyle
- string - inline CSS Style of data cells
-
Rows - readonly - array of row arrays - a row array
contains the fields data twice, keyed by index & keyed by field-name
-
SelectedRowIndex - readonly - See DataGrid example of reading
selected row's data
Able to have children controls. Has selectable layouts.
No new properties introduced, only those from Forms_Control inherited.
Inherited from TextBox.
No new properties introduced, only those from Forms_Control inherited.
For multiline text.
Properties
-
Text
- string - get/set
-
Disabled
- boolean - get/set - true/false
-
ReadOnly
- boolean - get/set - true/false
-
WordWrap - boolean - get/set - true/false
For single-line text.
Properties
Table component. Design-time editable cells. The cells can be manipulated
run-time too.
Properties
-
CellData
- array of Row Arrays - get/set - a RowArray is an array
of strings. You can create this CellData array at runtime and assign to
CellData property; or manipulate anyway.
-
Border - integer - get/set - the width of the table border
Functions
-
AddRow( $ValuesArray ) - add an array of strings as new row at
the end of the CellData array.