2022/CVE-2022-0176/vultarget/powerpack-addon-for-beaver-builder/classes/wpml/class-wpml-pp-pricing-table.php
<?php
class WPML_PP_Pricing_Table extends WPML_Beaver_Builder_Module_With_Items {

	public function &get_items( $settings ) {
		return $settings->pricing_columns;
	}

	public function get_fields() {
		return array( 'hl_featured_title', 'title', 'price', 'duration', 'features', 'button_text', 'button_url', 'matrix_items' );
	}

	protected function get_title( $field ) {
		switch( $field ) {
			case 'hl_featured_title':
                return esc_html__( 'Pricing Table - Featured Title', 'bb-powerpack-lite' );

            case 'title':
                return esc_html__( 'Pricing Table - Package Title', 'bb-powerpack-lite' );

            case 'price':
                return esc_html__( 'Pricing Table - Price', 'bb-powerpack-lite' );

			case 'duration':
				return esc_html__( 'Pricing Table - Duration', 'bb-powerpack-lite' );

			case 'features':
				return esc_html__( 'Pricing Table - Feature', 'bb-powerpack-lite' );

			case 'button_text':
				return esc_html__( 'Pricing Table - Button Text', 'bb-powerpack-lite' );

			case 'button_url':
				return esc_html__( 'Pricing Table - Button URL', 'bb-powerpack-lite' );

			case 'matrix_items':
				return esc_html__( 'Pricing Table - Matrix Item', 'bb-powerpack-lite' );

			default:
				return '';
		}
	}

	protected function get_editor_type( $field ) {
		switch( $field ) {
            case 'hl_featured_title':
    		case 'title':
			case 'price':
        	case 'duration':
        	case 'button_text':
                return 'LINE';

            case 'features':
            case 'matrix_items':
                return 'VISUAL';

			case 'button_url':
				return 'LINK';

			default:
				return '';
		}
	}

}
