Is this element checked?
Returns the current checked status of this element. Note that the checked status is different than the value of the checkable element. If an element is checked it returns its value. Otherwise, it returns no value.
API Tags:
void setChecked(
boolean
$checked
)
|
|
Set the checked attribute
Set the checked status of this element. Note that the checked status is different than the value of the checkable element. If an element is checked it returns its value. Otherwise, it returns no value.
Parameters:
|
boolean |
$checked: |
Should we check it? |
API Tags:
void setDefault(
boolean
$checked
)
|
|
Set the default checked status
Sets the default status of this element. The default is ignored, though, if the status has been explicitly set via setChecked().
Parameters:
|
boolean |
$checked: |
Default status |
API Tags:
Redefinition of:
- SForm_Element::setDefault()
- Set the default value of this element
Returns a checkable element
Checkboxes are odd in that they don't return any value if they are unchecked when submitted. So, we need to use isChecked() to determine the correct status of this checkbox.
API Tags:
Redefinition of:
- SForm_Element::toHtml()
- Create a HTML representation of this element
Setup the string so it better represent a 'check'
API Tags:
| Return: | A static check. |
| Access: | public |
Redefinition of:
- SForm_Element::toString()
- How does this value look as a HTML string?