Overview

Packages

  • Admin
  • Archive
  • Common
  • DB
  • Express
  • Form
  • Layout
  • Mailer
  • None
  • OpenHomeoDB
  • PDF
    • MC
  • Process
  • Rep
  • RevRep
  • SaveReps
  • Search
  • Session
  • SymRem
  • TreeView
  • UserDB

Classes

  • Form
  • Overview
  • Package
  • Class
  • Tree

Class Form

The Form class is meant to simplify the task of keeping track of errors in user submitted forms and the form field values that were entered correctly.

Package: Form
Category: Login
Copyright: 2007-2014 Henri Schumacher
License: GNU Affero General Public License v3
Author: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
Author: Henri Schumacher <henri.hulski@gazeta.pl>
Located at include/classes/login/form.php
Methods summary
public Form
# __construct( )

Class constructor

Class constructor

Get form value and error arrays, used when there is an error with a user-submitted form.

Returns

Form
public
# setError( string $field, string $errmsg )

setError - Records new form error given the form field name and the error message attached to it.

setError - Records new form error given the form field name and the error message attached to it.

Parameters

$field
string
$field form field
$errmsg
string
$errmsg error message
public string
# value( string $field )

value - Returns the value attached to the given field, if none exists, the empty string is returned.

value - Returns the value attached to the given field, if none exists, the empty string is returned.

Parameters

$field
string
$field form field

Returns

string
field value
public string
# error( string $field )

error - Returns the error message attached to the given field, if none exists, the empty string is returned.

error - Returns the error message attached to the given field, if none exists, the empty string is returned.

Parameters

$field
string
$field form field

Returns

string
error message
public array
# getErrorArray( )

getErrorArray - Returns the array of error messages

getErrorArray - Returns the array of error messages

Returns

array
error messages
Properties summary
private array $values array()
#

Holds submitted form field values

Holds submitted form field values

private array $errors array()
#

Holds submitted form error messages

Holds submitted form error messages

public integer $num_errors
#

The number of errors in submitted form

The number of errors in submitted form

OpenHomeopath PHP code documentation API documentation generated by ApiGen 2.8.0