API Documentation

View/Helper/FormCheckbox.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
version
$Id: FormCheckbox.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_View_Helper_FormCheckbox

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_View_Helper_FormCheckbox

Extends from
Zend_View_Helper_FormElement
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
Properties
$_defaultCheckedOptions
Methods
formCheckbox
determineCheckboxInfo

Description

Helper to generate a "checkbox" element

Properties

$_defaultCheckedOptions

array $_defaultCheckedOptions = 'array'

Default checked/unchecked options

Details

$_defaultCheckedOptions
array
visibility
protected
default
array
final
false
static
true

Methods

determineCheckboxInfo

determineCheckboxInfo( string $value, bool $checked, array|null $checkedOptions = null ) : array

Determine checkbox information

Arguments
$value
string
$checked
bool
$checkedOptions
arraynull
Output
array
Details
visibility
public
final
false
static
true

formCheckbox

formCheckbox( string|array $name, mixed $value = null, array $attribs = null,  $checkedOptions = null ) : string

Generates a 'checkbox' element.

Arguments
$name
stringarray
If a string, the element name. If an array, all other parameters are ignored, and the array elements are extracted in place of added parameters.
$value
mixed
The element value.
$attribs
array
Attributes for the element tag.
$checkedOptions
Output
string
The element XHTML.
Details
visibility
public
final
false
static
false
access
public
Documentation was generated by DocBlox.