Easy Property Listings 3.4.35 Code Reference
  • Package
  • Class
  • Tree
  • Todo
  • Hook Reference

Packages

  • EPL
    • Admin
      • Actions
      • Classes
        • ContactsTable
        • ReportsGraph
        • Welcome
      • Contacts
      • ContactsActions
      • ContactsFunctions
      • Elements
      • Functions
      • Help
      • HelpSingle
      • Menus
      • MenusAddons
      • MenusExtensions
      • MenusLicenses
      • Plugins
      • Reports
      • ReportsGraphing
      • User
    • Assets
      • ScriptsStyles
      • SVG
    • Classes
      • AuthorMeta
      • Contact
      • Cron
      • CustomPostType
      • Forms
      • License
      • ListingAdvanced
      • ListingElements
      • MetaboxesCustomFields
      • Pagination
      • PropertyMeta
      • RenderFields
      • Search
      • Session
      • Updater
    • Compatibility
      • Extensions
      • Functions
      • Shortcodes
    • Functions
      • Actions
      • ConditionalTags
      • ErrorTracking
      • Formatting
      • Front
      • Global
      • Install
      • Pagination
      • Settings
      • Templates
    • Hooks
      • EnergyCertificate
      • ExternalLinks
      • FloorPlan
      • Map
      • ReadMore
      • WebLink
    • Meta
      • InitCustomFields
      • Meta
    • PostTypes
      • Business
      • Commercial
      • CommercialLand
      • Contact
      • Functions
      • Land
      • Property
      • Rental
      • Rural
    • Shortcode
      • CommercialListingSearch
      • ContactForm
      • Listing
      • ListingAdvanced
      • ListingAuction
      • ListingCategory
      • ListingFeature
      • ListingLocation
      • ListingMetaDoc
      • ListingOpen
      • ListingSearch
      • Map
    • Taxonomy
      • BusinessCategories
      • ContactTag
      • Features
      • Location
    • Templates
      • Themes
        • iThemes
        • iThemesBuilder
    • Widget
      • Admin
        • Dashboard
      • Classes
        • Author
        • ContactCapture
        • Gallery
        • Listing
        • Search
      • Functions
  • None
  • WordPress
    • Session

Classes

  • EPL_Render_Fields

Class EPL_Render_Fields

EPL_Render_Fields class.

Handles rendering of html fields for EPL settings, meta boxes etc.

Package: EPL\Classes\RenderFields
Copyright: Copyright (c) 2020, Merv Barrett
License: GNU Public License
Since: 2.3
Since: 3.4.29 Moved from meta-boxes into its own class for more extensibility.
Located at lib/includes/class-epl-render-fields.php

Methods summary

public
# __construct( )

Constructs a new instance.

Constructs a new instance.

public array
# process_field_params( array $field, string $val )

Process field paramaters.

Process field paramaters.

Parameters

$field
The field.
$val
The value.

Returns

array
The array of fields.
public string
# get_min( array $field )

Gets the minimum.

Gets the minimum.

Parameters

$field
The field.

Returns

string
The minimum.
public boolean
# is_multiple( array $field )

Determines whether the specified field is multiple.

Determines whether the specified field is multiple.

Parameters

$field
The field.

Returns

boolean
True if the specified field is multiple, False otherwise.
public string
# get_max( array $field )

Gets the maximum.

Gets the maximum.

Parameters

$field
The field.

Returns

string
The maximum.
public string
# get_maxlength( array $field )

Gets the maxlength.

Gets the maxlength.

Parameters

$field
The field.

Returns

string
The maxlength.
public string
# get_placeholder( array $field )

Gets the placeholder.

Gets the placeholder.

Parameters

$field
The field.

Returns

string
The placeholder.
public string
# get_autocomplete( array $field )

Gets the autocomplete.

Gets the autocomplete.

Parameters

$field
The field.

Returns

string
The autocomplete.
public boolean
# is_required( array $field )

Determines whether the specified field is required.

Determines whether the specified field is required.

Parameters

$field
The field.

Returns

boolean
True if the specified field is required, False otherwise.
public boolean
# get_id( array $field )

Gets the identifier.

Gets the identifier.

Parameters

$field
The field.

Returns

boolean
The identifier.
public string
# get_name( array $field )

Gets the name.

Gets the name.

Parameters

$field
The field.

Returns

string
The name.
public string
# get_decimal_validation_class( array $field = array() )

Gets the decimal validation class.

Gets the decimal validation class.

Parameters

$field
The field.

Returns

string
The decimal validation class.
public string
# get_number_validation_class( array $field = array() )

Gets the number validation class.

Gets the number validation class.

Parameters

$field
The field.

Returns

string
The number validation class.
public string
# get_email_validation_class( array $field = array() )

Gets the email validation class.

Gets the email validation class.

Parameters

$field
The field.

Returns

string
The email validation class.
public string
# get_url_validation_class( array $field = array() )

Gets the url validation class.

Gets the url validation class.

Parameters

$field
The field.

Returns

string
The The url validation class.
public boolean
# get_class( array $field )

Gets the class.

Gets the class.

Parameters

$field
The field.

Returns

boolean
The class.
public string
# get_data_attributes( array $field )

Gets the data attributes.

Gets the data attributes.

Parameters

$field
The field.

Returns

string
public boolean
# is_name_array( array $field )

Determines whether the specified field is name array.

Determines whether the specified field is name array.

Parameters

$field
The field.

Returns

boolean
True if the specified field is name array, False otherwise.
public string
# get_opening_field_tag( string $tag, array $field, boolean $self_close = false )

Gets the opening field tag.

Gets the opening field tag.

Parameters

$tag
The tag.
$field
The field.
$self_close
The self close.

Returns

string
The opening field tag.
public
# render( array $field = array(), string $val = '' )

Renders the field based on field type

Renders the field based on field type

Parameters

$field
The field.
$val
The value.
public
# select( array $field, string $val )

Renders select

Renders select

Parameters

$field
The field.
$val
The value.
public
# checkbox( array $field, string $val )

Renders checkbox

Renders checkbox

Parameters

$field
The field.
$val
The value.
public
# checkbox_single( array $field, string $val )

Renders checkbox single

Renders checkbox single

Parameters

$field
The field.
$val
The value.

Since

3.4.34 Tweak: Added hidden empty field for checkboxes so that they always show up in $_POST data while saving.
public
# checkbox_option( array $field, string $val )

Renders checkbox option

Renders checkbox option

Parameters

$field
The field.
$val
The value.

Since

3.4.34 Tweak: Added hidden empty field for checkboxes so that they always show up in $_POST data while saving.
public
# radio( array $field, string $val )

Renders radio

Renders radio

Parameters

$field
The field.
$val
The value.
public
# file( array $field, string $val )

Renders file / image

Renders file / image

Parameters

$field
The field.
$val
The value.
public
# editor( array $field, string $val )

Renders editor

Renders editor

Parameters

$field
The field.
$val
The value.
public
# textarea( array $field, string $val )

Renders textarea

Renders textarea

Parameters

$field
The field.
$val
The value.
public
# locked( array $field, string $val )

Renders locked

Renders locked

Parameters

$field
The field.
$val
The value.
public
# help( array $field, string $val )

Renders help

Renders help

Parameters

$field
The field.
$val
The value.
public
# render_default( array $field, string $val )

Renders default input types

Renders default input types

Parameters

$field
The field.
$val
The value.

Since

3.4.35 fixed hidden field rendering.

Properties summary

public string $class_prefix

Default class prefix.

Default class prefix.

# 'epl-form-field-'
public array $post

Post object.

Post object.

#
Easy Property Listings 3.4.35 Code Reference API documentation generated by ApiGen