Overview

Classes

  • Ws_logged_inModel
  • Ws_permissionsModel
  • Ws_role_permModel
  • Ws_rolesModel
  • Ws_user_roleModel
  • Ws_userModel
  • WsAuth
  • WsauthController
  • WsChart
  • WsConfig
  • WsController
  • WsDatabase
  • WsForm
  • WsImage
  • WsLocalize
  • WsModel
  • WsModelForm
  • WsModelGridView
  • WsUrl

Functions

  • __autoload
  • callHook
  • WsErrorHandler
  • Overview
  • Class

Class WsForm

WsForm Generates HTML form and form widgets.

Example usage:

$form = new WsForm(WsUrl::link('controller', 'form_action_script'));

// widgets
$form->textInput(array('name' => 'text_input'));
$form->textInput(array(
    'name' => 'date_input',
    'type' => 'date',
    'placeholder' => 'enter date'
));

$form->show();

Direct known subclasses

WsModelForm
Located at WsForm.class.php
Methods summary
public
# __construct( $action = '' )
public
# __toString( )
public
# show( )

Display generated form on screen

Display generated form on screen

public
# hiddenInput( array $params = array() )

Add hidden input element to form

Add hidden input element to form

Parameters

$params
HTML parameters for
public
# textInput( array $params = array() )

Add text input element to form

Add text input element to form

Parameters

$params
HTML parameters for
public
# textareaInput( array $params = array() )

Add multiline text input to form

Add multiline text input to form

Parameters

$params
HTML parameters for