EasyBlogFieldsAbstract
in package
AbstractYes
Table of Contents
Properties
- $app : mixed
- $config : mixed
- $formElement : mixed
- $input : mixed
- $title : mixed
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
- Displays the custom field value when displayed in the blog post
- form() : mixed
- Displays the form when user edits a blog post
- 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 the field values in text
Properties
$app
public
mixed
$app
= \null
$config
public
mixed
$config
= \null
$formElement
public
mixed
$formElement
= ''
$input
public
mixed
$input
= \null
$title
public
mixed
$title
= ''
Methods
__construct()
public
__construct() : mixed
admin()
Displays the form to the admin when they are customizing the field
public
abstract 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 custom field value when displayed in the blog post
public
abstract display(EasyBlogTableField &$field, EasyBlogPost &$blog) : mixed
Parameters
- $field : EasyBlogTableField
- $blog : EasyBlogPost
Tags
form()
Displays the form when user edits a blog post
public
abstract 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 the field values in text
public
abstract text(EasyBlogTableField &$field, EasyBlogPost &$blog) : mixed
Parameters
- $field : EasyBlogTableField
- $blog : EasyBlogPost