default
[ class tree: default ] [ index: default ] [ all elements ]

Class: Sps_Form_TableSearch

Source Location: /form/sps_form_tablesearch.php

Class Overview

Sps
   |
   --Sps_Form
      |
      --Sps_Form_TableSearch

A form is a container for data; it is associated with a record in a table.


Methods


Inherited Methods

Class: Sps_Form

Sps_Form::add_field()
Add a field to the form.
Sps_Form::clear()
Calls Sps_Field::set_value() with the value NULL on each field.
Sps_Form::conf()
Configure the form.
Sps_Form::get_action()
Gets the FORM ACTION value.
Sps_Form::get_confirm_var()
Sps_Form::get_field()
Get the named Sps_Field object.
Sps_Form::get_field_value()
Calls Sps_Field::get_value() on the named field.
Sps_Form::get_html()
Get the HTML for the form, suitable for display.
Sps_Form::get_html_display()
Get the HTML for the form, in display (non-interactive) mode.
Sps_Form::get_html_id()
Sps_Form::get_html_name()
Sps_Form::get_js_header()
retrieve the javascript header for this form. This is an accumulation (with duplicates removed) of the Sps_Field::get_js_header() results for all the fields. This should be placed between the HEAD tags for any page on which the form is displayed.
Sps_Form::get_name()
Sps_Form::get_text()
Gets the entire form, in text-only mode (suitable for sending by email).
Sps_Form::is_complete()
Determine whether this form has been submitted. Does not validate, just verifies that it has received a POST of data.
Sps_Form::load_from_data()
Sps_Form::load_from_query()
Sps_Form::merge()
Sps_Form::process_custom_delete()
Sps_Form::process_custom_fetch()
Sps_Form::process_custom_insert()
Sps_Form::process_custom_update()
Sps_Form::refresh()
Calls Sps_Field::refresh() on each field.
Sps_Form::remove_field()
Sps_Form::set_context()
Sps_Form::set_field_value()
Calls on the named field.
Sps_Form::set_name()
Sps_Form::validate()
Call Sps_Field::validate() on each field.

Class: Sps

Sps::fatal_error()

Class Details

[line 7]
A form is a container for data; it is associated with a record in a table.

Forms are simple containers of Sps_Field objects; they don't have any logic of their own.




[ Top ]


Class Methods


method conf_search [line 13]

void conf_search( Sps_Table &$table, [ $form_name = "main"])



Parameters:

Sps_Table   &$table  
   $form_name  

[ Top ]

method get_field_names [line 300]

void get_field_names( )

Basically, just make sure that the primary key appears first, no matter what.



[ Top ]

method set_show_fields [line 320]

void set_show_fields( $show_fields)



Parameters:

array   $show_fields  

[ Top ]


Documentation generated on Mon, 23 Apr 2007 09:51:03 -0500 by phpDocumentor 1.3.0RC6