EasyBlogFieldsTypeCheckbox
extends EasyBlogFieldsAbstract
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- admin() : mixed
- Displays the form to the admin when they are customizing the field
- classForm() : mixed
- Generates the class input form
- display() : mixed
- Renders the output of the checkbox values
- form() : mixed
- Renders the checkbox form
- getElement() : mixed
- Displays the title of the custom field.
- getOptions() : mixed
- Retrieve the field's options
- getTitle() : mixed
- Displays the title of the custom field.
- getValue() : mixed
- Retrieve the value for this field
- setFormElement() : mixed
- Allows caller to set the form element
- text() : mixed
- return checkbox values in plain text.
Properties
$app
public
mixed
$app
= \null
$config
public
mixed
$config
= \null
$element
public
mixed
$element
= 'checkbox'
$formElement
public
mixed
$formElement
= ''
$input
public
mixed
$input
= \null
$title
public
mixed
$title
= \null
Methods
__construct()
public
__construct() : mixed
admin()
Displays the form to the admin when they are customizing the field
public
admin(EasyBlogTableField &$field) : mixed
Parameters
- $field : EasyBlogTableField
classForm()
Generates the class input form
public
classForm(EasyBlogPost $post, EasyBlogTableField &$field) : mixed
Parameters
- $post : EasyBlogPost
- $field : EasyBlogTableField
Tags
display()
Renders the output of the checkbox values
public
display(EasyBlogTableField &$field, EasyBlogPost &$blog) : mixed
Parameters
- $field : EasyBlogTableField
- $blog : EasyBlogPost
Tags
form()
Renders the checkbox form
public
form(EasyBlogPost $post, EasyBlogTableField &$field) : mixed
Parameters
- $post : EasyBlogPost
- $field : EasyBlogTableField
Tags
getElement()
Displays the title of the custom field.
public
final getElement() : mixed
Tags
getOptions()
Retrieve the field's options
public
getOptions(EasyBlogTableField &$field) : mixed
Parameters
- $field : EasyBlogTableField
Tags
getTitle()
Displays the title of the custom field.
public
final getTitle() : mixed
Tags
getValue()
Retrieve the value for this field
public
getValue(EasyBlogTableField &$field, EasyBlogPost &$post) : mixed
Parameters
- $field : EasyBlogTableField
- $post : EasyBlogPost
Tags
setFormElement()
Allows caller to set the form element
public
setFormElement([mixed $element = 'field' ]) : mixed
Parameters
- $element : mixed = 'field'
Tags
text()
return checkbox values in plain text.
public
text(EasyBlogTableField &$field, EasyBlogPost &$blog) : mixed
Parameters
- $field : EasyBlogTableField
- $blog : EasyBlogPost