| @@ -71,8 +71,26 @@ | ||
| 71 | 71 | return (bool) $this->get_argument( 'save_button', true ); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | + * Retrieves whether the tab hosts beta functionalities. | |
| 76 | + * | |
| 77 | + * @return bool True whether the tab hosts beta functionalities. | |
| 78 | + */ | |
| 79 | + public function is_beta() { | |
| 80 | + return (bool) $this->get_argument( 'beta', false ); | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * Retrieves whether the tab hosts premium functionalities. | |
| 85 | + * | |
| 86 | + * @return bool True whether the tab hosts premium functionalities. | |
| 87 | + */ | |
| 88 | + public function is_premium() { | |
| 89 | + return (bool) $this->get_argument( 'premium', false ); | |
| 90 | + } | |
| 91 | + | |
| 92 | + /** | |
| 75 | 93 | * Gets the option group. |
| 76 | 94 | * |
| 77 | 95 | * @return string The option group. |
| 78 | 96 | */ |
| @@ -82,10 +100,10 @@ | ||
| 82 | 100 | |
| 83 | 101 | /** |
| 84 | 102 | * Retrieves the variable from the supplied arguments. |
| 85 | 103 | * |
| 86 | - * @param string $variable Variable to retrieve. | |
| 87 | - * @param string|mixed $default_value Default to use when variable not found. | |
| 104 | + * @param string $variable Variable to retrieve. | |
| 105 | + * @param string|mixed $default_value Default to use when variable not found. | |
| 88 | 106 | * |
| 89 | 107 | * @return mixed|string The retrieved variable. |
| 90 | 108 | */ |
| 91 | 109 | protected function get_argument( $variable, $default_value = '' ) { |