Add a input element in elements array with name = $name of type = $type and properties = $aproperties

Parameters:

  • string $name: the name of the input
  • string $type: the type of the input can be: select, textarea, submit, reset, button, input
  • array $aproperties: properties

API Tags:
Access: public



Add a javascript event = $event with code = $code for field = $field

Parameters:

  • string $field: namre of the field
  • string $event: name of the event
  • string $code: java script code

API Tags:
Access: public

Add a group in the elements array with input elements and properties

Parameters:

  • string $name: group name
  • array $elemetnts: array of input elements
  • array $properties: of the group

API Tags:
Access: public


Create a input element of type=$type name=$name and propertiies The method is used in renderForm to cretate the form elements based on the elemets optiins array

Parameters:

  • string $name: the name of the element
  • string $type: the type of the input element
  • array $prop: valid HTML properties of the element

API Tags:
Access: public

Creates a group element with name = $name and properties = $properties, containing input elements (array)

Parameters:

  • string $name: - the name of the group element
  • array $elements: - array of the elemets in the group
  • type $prop: properties of the group element

API Tags:
Access: public


Return the primary key(s) of the table as array

API Tags:
Access: public


Insert the data array into the database according to the table element.
Return true on succes, false otherwiese.

Parameters:

  • array $data: associative array which key values correspond to the names in the table.

API Tags:
Access: public

The main method which should be called at end whenall other data for the form is prepared. The pethod perform constructiong of the form, obtaining data and save the data posted from the client.

Parameters:

  • array $params: parameters for the select coomand

API Tags:
Access: public

Automatically determines if the data posted from the form should be added or updated. The method use insert and update method for this purpose

Parameters:

  • array $data: data to be saved into the table from the form post

API Tags:
Access: public

Set the options for the ajax submit

Parameters:

  • array $aoptions: options for the ajax submit

API Tags:
Access: public

Set the layout of the form. Can be: onecolumn - we have label and below this label the input form element.
twocolumn - the leabel is at one column left and the data in another right

Parameters:

  • string $layout:

API Tags:
Access: public

Set the connection used for add/update of the form post and when get the certain data.

Parameters:

  • resource $db:

API Tags:
Access: public

Set the form footer and properties.

Parameters:

  • string $content: content to be set in the header
  • array $style: properties in the gheader

API Tags:
Access: public

Set the form header and properties.

Parameters:

  • string $content: content to be set in the header
  • string $icon: - icon name from UI Themeroller
  • array $style: properties in the gheader

API Tags:
Access: public

Set the form properties in the elements array.

Parameters:

  • string $name: - the name of the form
  • array $aproperties: properties

API Tags:
Access: public

Put a valid Java Script code after the form is rendered into the dom

Parameters:

  • string $code:

API Tags:
Access: public

Set the primary key(s) for future using in add/update.

Parameters:

  • string $keys:

API Tags:
Access: public

Set a common style for the table, labels and data input elements

Parameters:

  • string $table: table properties
  • string $label: common label properties
  • string $data: common data properties

API Tags:
Access: public

Set the url from where to get data and add or update it.

Parameters:

  • string $nurl: the new url

API Tags:
Access: public

Update the data into the database according the table element A primaryKey should be set.
Parameters:

  • array $data: associative array which key values correspond to the names in the table

API Tags:
Access: public