Jake Vanderwerf
2026-03-03 772462eeca3002a1d52508aeba485aab2b4742ad
inc/utility/Checker.php
@@ -5,6 +5,7 @@
   exit;
}
/**
 * @deprecated Use Registrar.php directly
 * Centralized registry for all content types, taxonomies, and user roles
 * Provides a single source of truth and caching layer
 */
@@ -39,9 +40,6 @@
   private function initialize(): void
   {
      // Build initial caches
      $this->buildContentCache();
      $this->buildTaxonomyCache();
      $this->buildUserRoleCache();
      $this->buildRelationships();
      // Set up WordPress hooks for cache invalidation
@@ -151,49 +149,6 @@
      };
   }
   /**
    * Build content type cache
    */
   private function buildContentCache(): void
   {
      $this->cache[self::CACHE_CONTENT] = JVB_CONTENT;
      // Add computed properties
      foreach ($this->cache[self::CACHE_CONTENT] as $slug => &$config) {
         $config['_slug'] = $slug;
         $config['_post_type'] = BASE . $slug;
         $config['_supports_dashboard'] = $this->computesDashboardSupport($config);
         $config['_is_user_type'] = $this->computesUserType($config);
      }
   }
   /**
    * Build taxonomy cache
    */
   private function buildTaxonomyCache(): void
   {
      $this->cache[self::CACHE_TAXONOMIES] = JVB_TAXONOMY;
      foreach ($this->cache[self::CACHE_TAXONOMIES] as $slug => &$config) {
         $config['_slug'] = $slug;
         $config['_taxonomy'] = BASE . $slug;
         $config['_is_hierarchical'] = $config['hierarchical'] ?? true;
      }
   }
   /**
    * Build user role cache
    */
   private function buildUserRoleCache(): void
   {
      $this->cache[self::CACHE_USER_ROLES] = JVB_USER;
      foreach ($this->cache[self::CACHE_USER_ROLES] as $slug => &$config) {
         $config['_slug'] = $slug;
         $config['_role'] = BASE . $slug;
         $config['_creatable_content'] = $this->extractCreatableContent($config);
      }
   }
   /**
    * Build relationships between types