| | |
| | | <?php |
| | | namespace JVBase\forms; |
| | | |
| | | use JVBase\JVBIcons; |
| | | use JVBase\managers\CacheManager; |
| | | use JVBase\managers\IconsManager; |
| | | use WP_REST_Request; |
| | | use WP_REST_Response; |
| | | use WP_Term; |
| | |
| | | protected string $id; |
| | | protected string $name; |
| | | protected string $taxonomyName; |
| | | protected JVBIcons $icon; |
| | | protected IconsManager $icon; |
| | | protected string $plural; |
| | | |
| | | protected string $taxonomy; |
| | |
| | | $this->id = sanitize_key($id); |
| | | $this->taxonomy = jvbCheckBase($taxonomy); |
| | | $this->name = str_replace(BASE, '', $taxonomy); |
| | | $this->icon = new JVBIcons(); |
| | | $this->icon = IconsManager::getInstance(); |
| | | $this->cache = CacheManager::for(jvbNoBase($taxonomy), WEEK_IN_SECONDS); |
| | | |
| | | $this->base = $config['base'] ?? ''; |