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_HTMLElement

Base class HTMLElement

Direct known subclasses

CC_Button, CC_Field

Indirect known subclasses

CC_CCLI_Button, CC_Checkbox, CC_TextField, CC_UrlField, CC_ColorField, CC_EmailField, CC_FileUpload, CC_HiddenField, CC_NumberField, CC_PasswordField, CC_TelefonField, CC_TextArea

Package: CT-Form
Located at system/churchcore/classes/CTForm.class.php

Methods summary

public
# __construct( string $name, string $class, string/array $fieldWidth = false )

Constructor fieldWidth is an array of column widths for bootstraps 12 column grid a number (used for md) or an array ('sm'=>8, 'md'=>6, 'lg'=>3)

Constructor fieldWidth is an array of column widths for bootstraps 12 column grid a number (used for md) or an array ('sm'=>8, 'md'=>6, 'lg'=>3)

Parameters

$name
$class
$fieldWidth
$fieldWidth; trailing number for css classes like col-md-10 in form of array('md' => '3:9', ...)
public
# getBootstrapClasses( string/array $fieldWidth )

create col-xs-x, col-sm-x, col-md-x, col-lg-x bootstrap classes to limit input width if string is given it will be converted to array('md'=>string), preset names xs, sm, md, lg has no relation to likewise names in bootstrap, it means different input widths in this case

create col-xs-x, col-sm-x, col-md-x, col-lg-x bootstrap classes to limit input width if string is given it will be converted to array('md'=>string), preset names xs, sm, md, lg has no relation to likewise names in bootstrap, it means different input widths in this case

Parameters

$fieldWidth
$fieldWidth; one of xs, sm, md, lg or array of numbers for css classes like col-md-10 in an array('md' => '3', ...)
public
# __toString( )
public
# setName( $name )
public
# getName( )
protected
# getClass( $addClass = false )
public
# setForm( $form )
public
# getForm( )
protected string
# wrapRow( string $content, $addClass = '' )

Wrap row in

<

div class='row'>

<

div class='form-group addClasses'>

Wrap row in

<

div class='row'>

<

div class='form-group addClasses'>

Parameters

$content
$addClass

Returns

string
protected string
# wrapInput( string $input, $withOffset = false )

Wrap input in

<

div class='getFieldWidthClasses()'>

Wrap input in

<

div class='getFieldWidthClasses()'>

Parameters

$input
$content
$withOffset

Returns

string
public
# setValue( string $val )

set value

set value

Parameters

$val
bool $val
public
# getValue( )

Properties summary

protected $name
#
protected $class
#
protected $form
# null
protected $value
# null
public unknown $widthClasses

bootstrap css classes to limit field width, created from $fieldWidth given on constructor

bootstrap css classes to limit field width, created from $fieldWidth given on constructor

# array()
API documentation generated by ApiGen