feature_id = $feature_id; $this->feature_name = $feature_name; $this->item_points = $item_points; $this->security_level = $security_level; $this->feature_options = $feature_options; $this->callback = $callback; } /** * This function will set the status of the feature * * @param string $status - the status of the feature * * @return void */ public function set_feature_status($status) { $this->feature_status = $status; } /** * This function will return the string version of the level * * @return string - the string value of the level */ public function get_security_level_string() { $level_string = ""; if ("1" == $this->security_level) { $level_string = __('Basic', 'all-in-one-wp-security-and-firewall'); } elseif ("2" == $this->security_level) { $level_string = __('Intermediate', 'all-in-one-wp-security-and-firewall'); } elseif ("3" == $this->security_level) { $level_string = __('Advanced', 'all-in-one-wp-security-and-firewall'); } return $level_string; } /** * This function will return a boolean to indicate if the feature is on or not * * @return boolean - true if the feature is on otherwise false */ public function is_active() { return ('active' == $this->feature_status); } }