Overview
  • Package
  • Class

Packages

  • CT-API
  • CT-ChurchAuth
  • CT-ChurchCal
  • CT-ChurchCheckin
  • CT-ChurchCore
  • CT-ChurchDB
  • CT-ChurchFinance
  • CT-ChurchHome
  • CT-ChurchReport
  • CT-ChurchResource
  • CT-ChurchService
  • CT-ChurchTranslate
  • CT-ChurchWiki
  • CT-DB
  • CT-Form

Classes

  • CC_Button
  • CC_CCLI_Button
  • CC_Checkbox
  • CC_ColorField
  • CC_EmailField
  • CC_Field
  • CC_FileUpload
  • CC_HiddenField
  • CC_HTMLElement
  • CC_NumberField
  • CC_PasswordField
  • CC_TelefonField
  • CC_TextArea
  • CC_TextField
  • CC_UrlField
  • CTForm
  • CTModuleForm

Class CC_TextField

CC_HTMLElement
Extended by CC_Field
Extended by CC_TextField

Direct known subclasses

CC_ColorField, CC_EmailField, CC_NumberField, CC_PasswordField, CC_TelefonField, CC_UrlField

Package: CT-Form
Author: rr
See: CC_Field
Located at system/churchcore/classes/CTForm.class.php

Methods summary

public
# __construct( string $name, string $label, string $required = false, string $fieldWidth = false, string $class = '', string $autofocus = false, string $append = '', $autocomplete = '' )

Parameters

$name
$label
$required
$fieldWidth
= false, allowed values: xs, sm, md, lg, false
$class
= ''
$autofocus
= false
$append
= '', text to append to field, f.e. unit for numbers
$autocomplete

Overrides

CC_Field::__construct
public
# isValid( )

Overrides

CC_Field::isValid
protected
# setAppend( string $val )

Parameters

$val
protected string
# addAppend( $input )

add markup for input groups to append some text to field

add markup for input groups to append some text to field

Returns

string
public string
# render( string $type = 'text' )

renders text or password input depending on $type

renders text or password input depending on $type

Parameters

$type
$type, default: text; password email

Returns

string
html

Methods inherited from CC_Field

formLabel(), getError(), getFieldId(), getFieldName(), getFieldType(), getLabel(), hasError(), hasHint(), helpText(), helpTextOnError(), isRequired(), setError(), setHint(), setValue()

Methods inherited from CC_HTMLElement

__toString(), getBootstrapClasses(), getClass(), getForm(), getName(), getValue(), setForm(), setName(), wrapInput(), wrapRow()

Properties summary

protected string $append

text to append to field, f.e. unit for numbers

text to append to field, f.e. unit for numbers

# ''
protected string $autocomplete
# ''

Properties inherited from CC_Field

$error, $fieldType, $hint, $label

Properties inherited from CC_HTMLElement

$class, $form, $name, $value, $widthClasses

API documentation generated by ApiGen