Admin Page Framework - Field Type Pack Documentation
  • Package
  • Class

Packages

  • AdminPageFrameworkFieldTypePack
    • CustomFieldType

Classes

  • AutoCompleteCustomFieldType
  • DateCustomFieldType
  • DateRangeCustomFieldType
  • DateTimeCustomFieldType
  • DateTimeRangeCustomFieldType
  • DialCustomFieldType
  • EDDSoftwareLicensingCustomFieldType
  • FontCustomFieldType
  • GeometryCustomFieldType
  • GridCustomFieldType
  • ImageCheckboxCustomFieldType
  • ImageRadioCustomFieldType
  • LinkCustomFieldType
  • RevealerCustomFieldType
  • TimeCustomFieldType
  • TimeRangeCustomFieldType

Class GeometryCustomFieldType

Defines the geometry field type.

Field Type Specific Arguments

  • attributes - (array) The array that defines the HTML attributes of the field elements.
    • latitude - (array) The attributes applied the latitude input tag.
    • longitude - (array) The attributes applied the longitude input tag.
    • elevation - (array) The attributes applied the elevation element.
    • location_name - (array) The attributes applied the location_name element.
    • button - (array) The attributes applied the button element.

Example

array(
    'field_id'      => 'geometrical_coordinates',
    'section_id'    => 'geometry',
    'title'         => __( 'Geometrical Coordinates', 'admin-page-framework-field-type-pack' ),
    'type'          => 'geometry',
    'default'       => array(
        'latitude'  => 20,
        'longitude' => 20,
    ),
)
Package: AdminPageFrameworkFieldTypePack\CustomFieldType
Since: 1.0.0
Located at custom-field-types/geometry-custom-field-type/GeometryCustomFieldType.php

Methods summary

protected
# setUp( )

Loads the field type necessary components.

protected
# getEnqueuingScripts( )

Returns an array holding the urls of enqueuing scripts.

protected
# getEnqueuingStyles( )

Returns an array holding the urls of enqueuing styles.

protected
# getScripts( )

Returns the field type specific JavaScript script.

protected
# getIEStyles( )

Returns IE specific CSS rules.

protected
# getStyles( )

Returns the field type specific CSS rules.

protected
# getField( mixed $aField )

Returns the output of this field type.

protected
# _getInputs( mixed & $aField )

Magic methods summary

Properties summary

public array $aFieldTypeSlugs
#

Defines the field type slugs used for this field type.

protected array $aDefaultKeys
#

Defines the default key-values of this field type.

Remark

$_aDefaultKeys holds shared default key-values defined in the base class.
Admin Page Framework - Field Type Pack Documentation generated by ApiGen 2.8.0