| 1234567891011121314151617181920212223 |
- <?php
- namespace cx_newsletter;
- abstract class table_names_generator {
- public function __construct(\wpdb $database) {
- $this->database = $database;
- }
-
- protected function add_prefixes(string $name) : string {
- return $this->get_wordpress_prefix().$this->get_own_prefix().$name;
- }
- protected function get_own_prefix() : string {
- return 'cx_newsletter_';
- }
- protected function get_wordpress_prefix() : string {
- return $this->database->prefix;
- }
- private \wpdb $database;
- }
|