Class CMB2_Types
CMB field type objects
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 1.0.0
Link: https://cmb2.io
Located at includes/CMB2_Types.php
Methods summary
public
|
|
public
|
|
public
|
|
protected
|
|
protected
mixed
|
#
proxy_method( string $method, mixed $default, array $args = array() )
Proxies the method call to the CMB2_Type_Base object, if it exists, otherwise returns a default fallback value. |
protected
boolean
|
#
guess_type_object( string $method )
If no CMB2_Types::$type object is initiated when a proxy method is called, it means it's a custom field type (which SHOULD be instantiating a Type), but let's try and guess the type object for them and instantiate it. |
public
boolean|array
|
#
maybe_proxy_method( string $method, array $arguments )
Check for methods to be proxied to the CMB2_Type_Base object. |
public
boolean|
|
#
maybe_custom_field_object( string $fieldtype, array $args = array() )
Checks for a custom field CMB2_Type_Base class to use for rendering. |
public
|
#
get_new_render_type( string $fieldtype, string $render_class_name = null, array $args = array(), mixed $additional = '' )
Gets the render type CMB2_Type_Base object to use for rendering the field. |
public
string
|
#
get_render_type_class( string $fieldtype, string $render_class_name = null )
Checks for the render type class to use for rendering the field. |
public
string
|
|
public
string|false
|
|
public
string
|
|
public
string
|
#
concat_attrs( array $attrs, array $attr_exclude = array() )
Combines attributes into a string for a form element |
public
|
|
public
|
|
protected
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Properties summary
public
integer
|
$iterator
An iterator value for repeatable fields |
#
0
|
public
|
$field
Current CMB2_Field field object |
|
public
|
$type
Current CMB2_Type_Base object |
#
null
|