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_Checkbox

CC_HTMLElement
Extended by CC_Field
Extended by CC_Checkbox
Package: CT-Form
Author: rr
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 )

Parameters

$name
$label
$required
$fieldWidth
$class
$class
$autofocus
$autofocus
= false

Overrides

CC_Field::__construct
public
# setValue( string $val )

set Value

set Value

Parameters

$val
bool $val, for checkbox "on" or 1 is valid

Overrides

CC_Field::setValue
public string
# render( string $label = '' )

render single checkbox

render single checkbox

Parameters

$label
= ''

Returns

string
html

Methods inherited from CC_Field

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

Methods inherited from CC_HTMLElement

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

Properties summary

Properties inherited from CC_Field

$error, $fieldType, $hint, $label

Properties inherited from CC_HTMLElement

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

API documentation generated by ApiGen