[ PHPXref.com ] [ Generated: Sun Jul 20 18:30:55 2008 ] [ LogiCreate 2006-rc1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/logicreate/lib/ -> lc_form.php (summary)

(no description)

File Size: 1802 lines (54 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Form:: (61 methods):
  form()
  addText()
  genText()
  textToHTML()
  addFile()
  genFile()
  fileToHTML()
  addTextArea()
  gentextArea()
  textAreaToHTML()
  WYS()
  WYS()
  WYS()
  addHidden()
  genHidden()
  hiddenToHTML()
  addSubmit()
  submitToHTML()
  addRadio()
  radioToHTML()
  addPassword()
  passwordToHTML()
  addRow()
  getCurrentRow()
  RowToHTML()
  addToRow()
  addCheckBox()
  genCheckbox()
  checkboxToHTML()
  addSelect()
  genSelect()
  selectToHTML()
  dateDropDownToHtml()
  ToHTML()
  getTitle()
  getStyle()
  addStyle()
  generateForm()
  validateForm()
  validate()
  validateDefault()
  validateAlphaChars()
  validateNumericChars()
  validateAlphaNumeric()
  validateEmail()
  validateSelect()
  validateRadio()
  validateSelectMultiple()
  PrintForm()
  getForm()
  cleanInput()
  adminGetForm()
  adminToHTML()
  getFormData()
  makeOptions()
  updateEvent()
  modFormValue()
  updateSubmitBtn()
  hasErrors()
  object2array()
  removeFormField()


Class: Form  - X-Ref

form($id='', $groups="")   X-Ref
No description

addText($name, $displayName, $defaultValue='', $size='', $maxlength='', $row='')   X-Ref
No description

genText($v)   X-Ref
No description

textToHTML($v)   X-Ref
No description

addFile($name, $displayName, $defaultValue='', $size='', $row='')   X-Ref
No description

genFile($v)   X-Ref
No description

fileToHTML($v)   X-Ref
No description

addTextArea($name, $displayName, $cols, $rows, $defaultValue='', $row='')   X-Ref
No description

gentextArea($v)   X-Ref
No description

textAreaToHTML($v)   X-Ref
No description

WYS({'.$resize_script.'x'. $v['fieldName'].' = new HTMLArea("'.$v['fieldName'].'")   X-Ref
No description

WYS({'.$resize_script.'x'. $v['fieldName'].' = new HTMLArea("'.$v['fieldName'].'")   X-Ref
No description

WYS({'.$resize_script.'x'. $v['fieldName'].' = new HTMLArea("'.$v['fieldName'].'")   X-Ref
No description

addHidden($name, $defaultValue='', $row='')   X-Ref
No description

genHidden($v)   X-Ref
No description

hiddenToHTML($v)   X-Ref
No description

addSubmit($name, $defaultValue='', $image='', $row='')   X-Ref
No description

submitToHTML($v)   X-Ref
No description

addRadio($name, $defaultValue='', $image='', $row='')   X-Ref
No description

radioToHTML($v)   X-Ref
No description

addPassword($name, $displayName, $defaultValue='')   X-Ref
No description

passwordToHTML($v)   X-Ref
No description

addRow($title='', $css='')   X-Ref
No description

getCurrentRow()   X-Ref
No description

RowToHTML($v)   X-Ref
No description

addToRow($row, $ar)   X-Ref
No description

addCheckBox($name, $displayName, $defaultValue, $checked='', $row='')   X-Ref
No description

genCheckbox($v)   X-Ref
No description

checkboxToHTML($v)   X-Ref
No description

addSelect($name, $displayName, $array, $sel='', $multi='', $size='', $useValue=false, $row='')   X-Ref
No description

genSelect($v)   X-Ref
No description

selectToHTML($v)   X-Ref
makes HTML options from an array

This will return HTML formatted OPTION tags, but without the SELECT elements
around it.
The $sel argument can be an array OR a simple string.
If the $sel string matches the key being processed during the looping,
that element of the OPTION tag will be flagged as 'selected'
If $sel is an array, we'll check the entire array for a match (obviously slower, but handy)

param: array $ar Array to be processed into OPTION tags
param: mixed $sel Can be array or single string value - matched against keys of $ar
return: string HTML OPTION tags

dateDropDownToHtml($v)   X-Ref
makes HTML options for month, day, year from a date

param: string $date Date string (m/d/y for example) - can also be a straight unix timestamp
param: string $name Name of select fields to be used in select ($name[day], $name[month],$name[year])
param: int $startyear Year to start year loop (defaults to current year)
param: int $endyear Year to end year loop (defaults to current
param: int $bits bitwise flags to send back m/d/y (111 binary = 7, to return md only, bit=6, to send back year only, bits=1, etc)
return: string HTML formatted select boxes for month/day/year

ToHTML()   X-Ref
No description

getTitle($title)   X-Ref
No description

getStyle($x)   X-Ref
No description

addStyle($x, $y)   X-Ref
No description

generateForm($arr, $mappings, $exclude, $s1, $s2)   X-Ref
No description

validateForm($code, &$arr)   X-Ref
No description

validate($key, $val, $v)   X-Ref
No description

validateDefault($key, $val, $v)   X-Ref
No description

validateAlphaChars($key, $val, $v)   X-Ref
No description

validateNumericChars($key, $val, $v)   X-Ref
No description

validateAlphaNumeric($key, $val, $v)   X-Ref
No description

validateEmail($key, $val, $v)   X-Ref
No description

validateSelect($key, $val, $v)   X-Ref
No description

validateRadio($key, $val, $v)   X-Ref
No description

validateSelectMultiple($key, $val, $v)   X-Ref
No description

PrintForm()   X-Ref
No description

getForm($code, $vars='')   X-Ref
No description

cleanInput($tmp, $ar)   X-Ref
No description

adminGetForm($form)   X-Ref
No description

adminToHTML()   X-Ref
No description

getFormData($sql)   X-Ref
No description

makeOptions($ar,$sel="__0",$useValue=false)   X-Ref
No description

updateEvent($event_name)   X-Ref
All forms have an event associated with it
If a form does not, this won't break anything
If it finds an element named "event" it will replace
it's default value with @param 1

param: $event_name            string
return: void

modFormValue($element_name, $new_value)   X-Ref
All purpose form value "Default value" modifier
If a form does not, this won't break anything
If it finds an element named $element_name it will replace
it's default value with $new_value

param: $event_name            string
param: $new_value            string        // don't about how option/selects work with this yet, this is mainly for input/text/hidden fields
return: void

updateSubmitBtn($label_name)   X-Ref
Form::updateSubmitBtn()

Allows you to change the label of your submit button
If you execute this function and it doesn't exist
nothing will break, no harm to foul.

param: $label_name            string
return: void

hasErrors()   X-Ref
No description

object2array($object)   X-Ref
No description

removeFormField($element_name)   X-Ref
Removes a field from the form if it is not needed
Note:  if you remove a required field and you use
the validation, you will need to remove it again
before you validate, otherwise you will get an error
message for that field even though it was never submitted.

param: $element_name     string
return: void



[ Powered by PHPXref - Served by Debian GNU/Linux ]