Stud.IP  5.4
 All Data Structures Namespaces Files Functions Variables Groups
StudipForm Class Reference

Public Member Functions

 __construct ($form_fields, $form_buttons, $form_name="studipform", $persistent_values=true)
 
 getDefaultValues ()
 
 checkDefaultValues ()
 
 getFormField ($name, $attributes=false, $default=false, $subtype=false)
 
 getFormFieldNoForm ($name, $attributes, $default)
 
 getFormFieldText ($name, $attributes, $default)
 
 getFormFieldCheckbox ($name, $attributes, $default)
 
 getFormFieldRadio ($name, $attributes, $default, $subtype)
 
 getOneRadio ($name, $attributes, $default, $subtype)
 
 getFormFieldTextarea ($name, $attributes, $default)
 
 getFormFieldDatepicker ($name, $attributes, $default)
 
 getFormFieldTime ($name, $attributes, $default)
 
 getFormFieldSelect ($name, $attributes, $default)
 
 getFormFieldSelectBox ($name, $attributes, $default)
 
 getFormFieldCombo ($name, $attributes, $default, $subtype=false)
 
 getFormButton ($name, $attributes=[])
 
 getFormFieldCaption ($name, $attributes=false)
 
 getFormFieldInfo ($name)
 
 getFormStart ($action=false, $attributes=false)
 
 getFormEnd ()
 
 getFormFieldValue ($name)
 
 getFormFieldsByName ($only_editable=false)
 
 getHiddenField ($name, $value=false)
 
 doFormReset ()
 
 isChanged ($name)
 
 getRawFieldValue ($field_name)
 
 isSended ()
 
 isClicked ($button)
 
 getClickedKillButton ()
 
 getAttributes ($attributes)
 
 getFormFieldRequired ($name)
 

Static Public Member Functions

static TimestampToSQLDate ($tstamp)
 
static SQLDateToTimestamp ($sqldate)
 
static _GetRawFieldValue ($field_name, $form_name)
 
static _IsSended ($form_name)
 
static _IsClicked ($button, $form_name)
 

Data Fields

 $form_name
 
 $field_attributes_default = []
 
 $form_fields = []
 
 $form_buttons = []
 
 $persistent_values = true
 
 $form_values = []
 
 $value_changed = []
 

Constructor & Destructor Documentation

__construct (   $form_fields,
  $form_buttons,
  $form_name = "studipform",
  $persistent_values = true 
)

Member Function Documentation

static _GetRawFieldValue (   $field_name,
  $form_name 
)
static
static _IsClicked (   $button,
  $form_name 
)
static
static _IsSended (   $form_name)
static
checkDefaultValues ( )
doFormReset ( )
getAttributes (   $attributes)
getClickedKillButton ( )
getDefaultValues ( )
getFormButton (   $name,
  $attributes = [] 
)
getFormEnd ( )
getFormField (   $name,
  $attributes = false,
  $default = false,
  $subtype = false 
)
getFormFieldCaption (   $name,
  $attributes = false 
)
getFormFieldCheckbox (   $name,
  $attributes,
  $default 
)
getFormFieldCombo (   $name,
  $attributes,
  $default,
  $subtype = false 
)
getFormFieldDatepicker (   $name,
  $attributes,
  $default 
)
getFormFieldInfo (   $name)
getFormFieldNoForm (   $name,
  $attributes,
  $default 
)
getFormFieldRadio (   $name,
  $attributes,
  $default,
  $subtype 
)
getFormFieldRequired (   $name)
getFormFieldsByName (   $only_editable = false)
getFormFieldSelect (   $name,
  $attributes,
  $default 
)
getFormFieldSelectBox (   $name,
  $attributes,
  $default 
)
getFormFieldText (   $name,
  $attributes,
  $default 
)
getFormFieldTextarea (   $name,
  $attributes,
  $default 
)
getFormFieldTime (   $name,
  $attributes,
  $default 
)
getFormFieldValue (   $name)
getFormStart (   $action = false,
  $attributes = false 
)
getHiddenField (   $name,
  $value = false 
)
getOneRadio (   $name,
  $attributes,
  $default,
  $subtype 
)
getRawFieldValue (   $field_name)
isChanged (   $name)
isClicked (   $button)
isSended ( )
static SQLDateToTimestamp (   $sqldate)
static
static TimestampToSQLDate (   $tstamp)
static

Field Documentation

$field_attributes_default = []
$form_buttons = []
$form_fields = []
$form_name
$form_values = []
$persistent_values = true
$value_changed = []

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