QVCI Library 3.1
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
Qvform Class Reference
Inheritance diagram for Qvform:

Public Member Functions

 __construct ()
 
 check ($field, $value=null)
 
 get_from_post ()
 
 init ()
 
 m_set ($model, $fields)
 
 set ($fields, $value='')
 
 validate ()
 
 validation_errors ($prefix= '', $suffix= '')
 
 value ($field, $index=null)
 

Constructor & Destructor Documentation

Qvform::__construct ( )

Constructor

Member Function Documentation

Qvform::check (   $field,
  $value = null 
)

Function used for setting the checked state for checkboxes. Returns true if the field value equals $val

Parameters
str$field
str$value
Qvform::get_from_post ( )

Get the data posted from a form.

Qvform::init ( )

Initialize fields to blank. Accepts a variable argument list

Qvform::m_set (   $model,
  $fields 
)

Set a list of fields from a model

Parameters
object$model
array$fields
Qvform::set (   $fields,
  $value = '' 
)

Set the value of a field or fields. Also used to initialize/establish fields.

Parameters
mixed$fields
mixed$value
Qvform::validate ( )

Run form validation

Qvform::validation_errors (   $prefix = '',
  $suffix = '' 
)

Return validation errors

Parameters
string$prefix
string$suffix
Qvform::value (   $field,
  $index = null 
)

Return the current value of a field.

Parameters
string | array$field
int$index

The documentation for this class was generated from the following file: