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_Field

CC_HTMLElement
Extended by CC_Field

Direct known subclasses

CC_CCLI_Button, CC_Checkbox, CC_FileUpload, CC_HiddenField, CC_TextArea, CC_TextField

Indirect known subclasses

CC_ColorField, CC_EmailField, CC_NumberField, CC_PasswordField, CC_TelefonField, CC_UrlField

Package: CT-Form
Author
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 = '' )

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

Overrides

CC_HTMLElement::__construct
protected
# getLabel( )
public
# isRequired( )
public
# getFieldType( )
public
# getError( )
public
# hasError( )
public
# hasHint( )
protected string
# helpText( string $class = 'help-block', boolean $onErrorOnly = false )

get error help text TODO: not yet finished (different error and/or standard help if any?)

get error help text TODO: not yet finished (different error and/or standard help if any?)

Parameters

$class
addClass
$onErrorOnly

Returns

string
html
protected string
# helpTextOnError( string $class = 'help-block' )

get help text only if on error

get help text only if on error

Parameters

$class
addClass

Returns

string
html
protected string
# formLabel( $label = '' )

get label for field

get label for field

Returns

string
html
public
# setValue( $val )

set Value

set Value

Parameters

$val

Overrides

CC_HTMLElement::setValue
public
# isValid( )
public
# setError( $txt )
public
# setHint( $txt )
protected string
# getFieldName( string $name,… )

get field name in form of formName[fieldName]

get field name in form of formName[fieldName]

Parameters

$name,…

Returns

string
protected string
# getFieldId( string $name,… )

get field name in form of formName[fieldName]

get field name in form of formName[fieldName]

Parameters

$name,…

Returns

string

Methods inherited from CC_HTMLElement

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

Properties summary

protected string $fieldType
# ""
protected $label
#
protected $error
# null
protected $hint
# null

Properties inherited from CC_HTMLElement

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

API documentation generated by ApiGen