PluginProbe
Tiered Pricing Table for WooCommerce / trunk
Tiered Pricing Table for WooCommerce vtrunk
7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 All 90 releases
tier-pricing-table / src / Settings / Sections / SubsectionAbstract.php

SubsectionAbstract.php in Tiered Pricing Table for WooCommerce trunk, at src/Settings/Sections/SubsectionAbstract.php

39 lines 933 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Settings\Sections;
2
3 use TierPricingTable\Settings\Settings;
4
5 abstract class SubsectionAbstract {
6
7 abstract public function getTitle();
8
9 abstract public function getDescription();
10
11 abstract public function getSlug();
12
13 abstract public function getSettings();
14
15 public function getWrappedSettings() {
16
17 $settings = $this->getSettings();
18
19 array_unshift( $settings, array(
20 'title' => $this->getTitle(),
21 'desc' => $this->getDescription(),
22 'id' => Settings::SETTINGS_PREFIX . '_subsection_' . $this->getSlug(),
23 'type' => 'title',
24 'custom_attributes' => $this->getCustomAttributes(),
25 ) );
26
27 $settings[] = array(
28 'type' => 'sectionend',
29 'id' => Settings::SETTINGS_PREFIX . '_end_subsection_' . $this->getSlug(),
30 );
31
32 return $settings;
33 }
34
35 protected function getCustomAttributes() {
36 return array();
37 }
38 }
39