| | |
| | | <?php |
| | | namespace JVBase\base; |
| | | use JVBase\Instance; |
| | | use JVBase\meta\Meta; |
| | | use JVBase\registrar\config\seo\Resolver; |
| | | use JVBase\registrar\Registrar; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | | exit; |
| | | } |
| | | class SchemaHelper |
| | | { |
| | | use Instance; |
| | | protected static array $allowedTypes; |
| | | protected static array $allowedFormats = ['schema', 'archive', 'meta', 'reference']; |
| | | protected static array $schemas = []; |
| | | protected static array $metas = []; |
| | | protected static array $archives = []; |
| | | protected static array $references = []; |
| | | public function __construct() |
| | | protected function __construct() |
| | | { |
| | | self::$allowedTypes = array_merge(['website', 'organization'], Registrar::getRegistered()); |
| | | } |
| | |
| | | } |
| | | return $class; |
| | | } |
| | | |
| | | public static function reset(string $type, string $format):bool |
| | | { |
| | | $default = self::getDefault($type, $format); |
| | | return self::update($type, $format, $default); |
| | | } |
| | | } |