EasyBlogFieldsTypeDate
extends EasyBlogFieldsAbstract
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- admin() : mixed
- Renders the form options for the date field in the admin area
- classForm() : mixed
- Generates the class input form
- display() : mixed
- Displays the date on the form
- form() : mixed
- Renders the front end 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 date values in plain text.
Properties
$app
public
mixed
$app
= \null
$config
public
mixed
$config
= \null
$element
public
mixed
$element
= 'date'
$formElement
public
mixed
$formElement
= ''
$input
public
mixed
$input
= \null
$title
public
mixed
$title
= \null
Methods
__construct()
public
__construct() : mixed
admin()
Renders the form options for the date field in the admin area
public
admin(EasyBlogTableField &$field) : mixed
Parameters
- $field : EasyBlogTableField
Tags
classForm()
Generates the class input form
public
classForm(EasyBlogPost $post, EasyBlogTableField &$field) : mixed
Parameters
- $post : EasyBlogPost
- $field : EasyBlogTableField
Tags
display()
Displays the date on the form
public
display(EasyBlogTableField &$field, EasyBlogPost &$post) : mixed
Parameters
- $field : EasyBlogTableField
- $post : EasyBlogPost
Tags
form()
Renders the front end 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 date values in plain text.
public
text(EasyBlogTableField &$field, EasyBlogPost &$blog) : mixed
Parameters
- $field : EasyBlogTableField
- $blog : EasyBlogPost