AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes::_setProperties PHP Метод

_setProperties() приватный Метод

Sets up properties.
С версии: 3.6.0
private _setProperties ( ) : void
Результат void
    private function _setProperties()
    {
        $this->aCustomFieldTypes = array('AceCustomFieldType' => array('class_name' => 'AceCustomFieldType', 'label' => __('ACE', 'admin-page-framework-loader'), 'description' => __('provides code syntax highlighting in a text area field.', 'admin-page-framework-loader'), 'directory_path' => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/ace-custom-field-type', 'archive_file_path' => 'custom-field-types/ace-custom-field-type/AceCustomFieldType.php', 'archive_dir_path' => 'custom-field-types/ace-custom-field-type', 'text_domain' => 'admin-page-framework'), 'GitHubCustomFieldType' => array('class_name' => 'GitHubCustomFieldType', 'label' => __('GitHub Buttons', 'admin-page-framework-loader'), 'description' => __('allows you to display GitHub buttons in a field.', 'admin-page-framework-loader'), 'directory_path' => AdminPageFrameworkLoader_Registry::$sDirPath . '/include/library/github-custom-field-type', 'archive_file_path' => 'custom-field-types/github-custom-field-type/GitHubCustomFieldType.php', 'archive_dir_path' => 'custom-field-types/github-custom-field-type', 'text_domain' => 'admin-page-framework'), 'PathCustomFieldType' => array('class_name' => 'PathCustomFieldType', 'label' => __('Path', 'admin-page-framework-loader'), 'description' => __('allows the user to select a file path on the server.', 'admin-page-framework-loader'), 'directory_path' => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/path-custom-field-type', 'archive_file_path' => 'custom-field-types/path-custom-field-type/PathCustomFieldType.php', 'archive_dir_path' => 'custom-field-types/path-custom-field-type', 'text_domain' => 'admin-page-framework'), 'ToggleCustomFieldType' => array('class_name' => 'ToggleCustomFieldType', 'label' => __('Toggle', 'admin-page-framework-loader'), 'description' => __('allows the user to switch a button.', 'admin-page-framework-loader'), 'directory_path' => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/toggle-custom-field-type', 'archive_file_path' => 'custom-field-types/toggle-custom-field-type/ToggleCustomFieldType.php', 'archive_dir_path' => 'custom-field-types/toggle-custom-field-type', 'text_domain' => 'admin-page-framework'), 'NoUISliderCustomFieldType' => array('class_name' => 'NoUISliderCustomFieldType', 'label' => __('NoUISlider (Range Slider)', 'admin-page-framework-loader'), 'description' => __('allows the user to set values in ranges.', 'admin-page-framework-loader'), 'directory_path' => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/nouislider-custom-field-type', 'archive_file_path' => 'custom-field-types/nouislider-custom-field-type/NoUISliderCustomFieldType.php', 'archive_dir_path' => 'custom-field-types/nouislider-custom-field-type', 'text_domain' => 'admin-page-framework'), 'Select2CustomFieldType' => array('class_name' => 'Select2CustomFieldType', 'label' => __('Select2', 'admin-page-framework-loader'), 'description' => __('allows the user to select items with autocomplete from a list which can be populated with AJAX.', 'admin-page-framework-loader'), 'directory_path' => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/select2-custom-field-type', 'archive_file_path' => 'custom-field-types/select2-custom-field-type/Select2CustomFieldType.php', 'archive_dir_path' => 'custom-field-types/select2-custom-field-type', 'text_domain' => 'admin-page-framework'), 'PostTypeTaxonomyCustomFieldType' => array('class_name' => 'PostTypeTaxonomyCustomFieldType', 'label' => __('Post Type Taxonomy', 'admin-page-framework-loader'), 'description' => __('allows the user to select taxonomy terms of selected post types.', 'admin-page-framework-loader'), 'directory_path' => AdminPageFrameworkLoader_Registry::$sDirPath . '/example/library/post_type_taxonomy_field-type', 'archive_file_path' => 'custom-field-types/post_type_taxonomy_field-type/PostTypeTaxonomyCustomFieldType.php', 'archive_dir_path' => 'custom-field-types/post_type_taxonomy_field-type', 'text_domain' => 'admin-page-framework'));
        // Let third-party scripts add custom field types.
        $this->aCustomFieldTypes = apply_filters(AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_filter_generator_custom_field_types', $this->aCustomFieldTypes);
        foreach ($this->aCustomFieldTypes as $_sKey => $_aCustomFieldType) {
            $this->aCustomFieldTypeLabels[$_sKey] = $_aCustomFieldType['label'] . ' - <span class="description">' . $_aCustomFieldType['description'] . '</span>';
        }
    }