Class AdminPageFramework_FieldType_import
Defines the import field type.
Field Definition Arguments
Field Type Specific Arguments
- option_key - (optional, string) the option table key to save the importing data.
- format - (optional, string) the import format. json, or array is supported. Default: array
- is_merge - (optional, boolean) [2.0.5+] determines whether the imported data should be merged with the existing options.
Common Field Definition Arguments
For common field definition arguments, seeAdminPageFramework_Factory_Controller::addSettingField()
.
Example
array( 'field_id' => 'import_single', 'title' => __( 'Import Field', 'admin-page-framework-loader' ), 'type' => 'import', 'label' => __( 'Import Options', 'admin-page-framework-loader' ), )
Package: AdminPageFramework\Common\Form\FieldType
Since: 2.1.5
Image: http://admin-page-framework.michaeluno.jp/image/common/form/field_type/import.png
Located at factory/_common/form/field_type/import/AdminPageFramework_FieldType_import.php
Since: 2.1.5
Image: http://admin-page-framework.michaeluno.jp/image/common/form/field_type/import.png
Located at factory/_common/form/field_type/import/AdminPageFramework_FieldType_import.php
Methods summary
protected
array
|
#
getEnqueuingScripts( )
|
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.
|