Tailor\Classes\BlueprintIndexer
Overview
BlueprintIndexer super class responsible for indexing blueprints
Public Properties
public static array $memoryCache
cache collection
Protected Properties
protected int $migrateCount
migrateCount number of migrations that occurred.
protected bool $debugChecked
debugChecked for the debug cache buster
protected string|null $themeContext
themeContext overrides the active theme used to filter blueprint lookups, so a specific theme can be indexed and seeded even when it is not the active theme.
protected Illuminate\Console\OutputStyle $notesOutput
protected Illuminate\Console\Command $notesCommand
protected string $fieldsCacheKey
protected string $globalsCacheKey
protected string $sectionsCacheKey
protected string $fieldsetsCacheKey
protected string $permissionCacheKey
protected string $navigationCacheKey
Public Methods
public static clearCache()
public static clearCache(): void
clearCache clears the disk cache
public find()
public find($uuid): Tailor\Classes\Blueprint|null
public findByHandle()
public findByHandle($handle): Tailor\Classes\Blueprint|null
public findContentFieldset()
public findContentFieldset($contentUuid): Tailor\Classes\Fieldset|null
findContentFieldset creates a compilation of fields based on shared content groups that is compiled on a first seen basis.
public findFieldset()
public findFieldset($uuid, $group = null): Tailor\Classes\Fieldset|null
public findGlobal()
public findGlobal($uuid): Tailor\Classes\Blueprint\GlobalBlueprint|null
public findGlobalByHandle()
public findGlobalByHandle(
$handle
): Tailor\Classes\Blueprint\GlobalBlueprint|null
public findMixin()
public findMixin($uuid): Tailor\Classes\Blueprint\MixinBlueprint|null
public findPrimaryNavigation()
public findPrimaryNavigation($uuid): Tailor\Classes\NavigationItem|null
public findSecondaryNavigation()
public findSecondaryNavigation($uuid): Tailor\Classes\NavigationItem|null
public findSection()
public findSection($uuid): Tailor\Classes\Blueprint\EntryBlueprint|null
public findSectionByHandle()
public findSectionByHandle(
$handle
): Tailor\Classes\Blueprint\EntryBlueprint|null
public static flushCache()
public static flushCache(): void
flushCache clears the memory cache
public getNavigationContentMainMenu()
public getNavigationContentMainMenu(): array
public getNavigationContentSideMenu()
public getNavigationContentSideMenu(): array
getNavigationContentMenu
public getNavigationMainMenu()
public getNavigationMainMenu(): array
public getNavigationSettingsMenu()
public getNavigationSettingsMenu(): array
public getNavigationSideMenu()
public getNavigationSideMenu($parentItem): array
public getNotesCommand()
public getNotesCommand(): Illuminate\Console\Command|null
getNotesOutput returns the note command object, if available.
public getNotesOutput()
public getNotesOutput(): Illuminate\Console\OutputStyle|null
getNotesOutput returns the note output, used by command line.
public getPageManagerTypeInfo()
public getPageManagerTypeInfo($type): array
public getPermissionDefinitions()
public getPermissionDefinitions(): array
public hasMixin()
public hasMixin($handleOrUuid): string
hasMixin is a quick way to resolve a mixin to a UUID
public hasSection()
public hasSection($handleOrUuid): string
hasSection is a quick way to resolve a section to a UUID
public indexFieldsets()
public indexFieldsets(): array
public indexGlobals()
public indexGlobals(): array
public indexMixins()
public indexMixins(): array
public indexNavigation()
public indexNavigation(): array
public indexPermissions()
public indexPermissions(): array
public indexSections()
public indexSections(): array
public static instance()
public static instance(): static
instance creates a new instance of this singleton
public listFieldsets()
public listFieldsets(): array
public listGlobals()
public listGlobals(): array
public listMixins()
public listMixins(): array
public listPageManagerTypes()
public listPageManagerTypes(): array
listPrimaryNavigation
public listSections()
public listSections(): array
public migrate()
public migrate(): void
public migrateBlueprint()
public migrateBlueprint($blueprint): void
public resolvePageManagerItem()
public resolvePageManagerItem($type, $item, $url, $theme): array
public setNotesCommand()
public setNotesCommand(Illuminate\Console\Command $command): void
setNotesCommand sets the fully qualified command for writing notes.
public setNotesOutput()
public setNotesOutput(Illuminate\Console\OutputStyle $output): void
setNotesOutput sets an output stream for writing notes.
public setThemeContext()
public setThemeContext($themeCode): static
setThemeContext overrides the active theme used to filter blueprint lookups for the duration of an indexing or seeding operation. Pass null to clear.
Protected Methods
protected buildExtraNavigationConfig()
protected buildExtraNavigationConfig($blueprint): array|null
buildExtraNavigationConfig used to inject manually specified navigation definitions
protected buildNavigationConfig()
protected buildNavigationConfig($blueprint, $isPrimary = false): array|null
buildNavigationConfig builds navigation config based on blueprint relationships
protected buildParentNavigationPermissions()
protected buildParentNavigationPermissions($items): void
protected buildPermissionConfig()
protected buildPermissionConfig($blueprint): array|null
protected extractItemUrlParams()
protected extractItemUrlParams($item): array
extractItemUrlParams returns URL-relevant params from a PageLookupItem, filtering out known metadata keys.
protected findAllFieldsetBlueprints()
protected findAllFieldsetBlueprints(): array
findAllFieldsetBlueprints will spin over all fieldset sources
protected findAllNavigationBlueprints()
protected findAllNavigationBlueprints(): array
findAllFieldsetBlueprints will spin over all fieldset sources
protected findAllPermissionBlueprints()
protected findAllPermissionBlueprints(): array
findAllFieldsetBlueprints will spin over all fieldset sources
protected findParentConfigUuid()
protected findParentConfigUuid($index, $handleOrUuid): string
protected getActiveThemeDatasources()
protected getActiveThemeDatasources(): array
getActiveThemeDatasources returns dirnames for the active theme and its parent, used to filter blueprint lookups when multiple themes define the same handle.
protected getBlueprintUuidFromTypename()
protected getBlueprintUuidFromTypename($typeName): void
protected getCache()
protected getCache($name): array
protected getPageManagerPageUrl()
protected getPageManagerPageUrl($pageCode, $record, $theme, $item = null): void
protected getPageManagerSites()
protected getPageManagerSites($pageCode, $record, $theme): array
protected isActiveThemeDatasource()
protected isActiveThemeDatasource($themeCode): bool
isActiveThemeDatasource returns true when a theme code belongs to the active theme, its parent theme, or a non-theme datasource.
protected lastBlueprintSourceFileMtime()
protected lastBlueprintSourceFileMtime($theme = null): int
lastBlueprintSourceFileMtime returns the newest blueprint SourceFile change, or 0 when the database layer is inactive or unavailable.
protected listBlueprintCmsPagesForPageInfo()
protected listBlueprintCmsPagesForPageInfo($model): void
protected listBlueprintPermissions()
protected listBlueprintPermissions(): array
protected listFieldsetsRaw()
protected listFieldsetsRaw(): array
listFieldsetsRaw without populating the Blueprint object
protected listFilteredNavigationRaw()
protected listFilteredNavigationRaw(): array
listFilteredNavigationRaw applies the site/theme filter to the blueprint navigation this allows theme-based blueprints to not appear in the menu.
protected listGlobalsRaw()
protected listGlobalsRaw(): array
listGlobalsRaw without populating the Blueprint object
protected listMixinsRaw()
protected listMixinsRaw(): array
listMixinsRaw without populating the Blueprint object
protected listNavigationRaw()
protected listNavigationRaw(): array
protected listPermissionsRaw()
protected listPermissionsRaw(): array
protected listPrimaryNavigation()
protected listPrimaryNavigation(): array
protected listRecordOptionsForPageInfo()
protected listRecordOptionsForPageInfo($model, $query): void
protected listSecondaryNavigation()
protected listSecondaryNavigation(): array
protected listSectionsRaw()
protected listSectionsRaw(): array
listSectionsRaw without populating the Blueprint object
protected makeCacheFile()
protected makeCacheFile($name): string
protected migrateContentInternal()
protected migrateContentInternal($blueprint): void
protected note()
protected note(string $message): self
note writes a note event for the migrator.
protected pageManagerBlueprintToType()
protected pageManagerBlueprintToType($blueprint): string
protected pageManagerTypeToBlueprint()
protected pageManagerTypeToBlueprint(
$typeName
): Tailor\Classes\Blueprint\EntryBlueprint|null
protected pageManagerTypeToModel()
protected pageManagerTypeToModel($typeName): void
pageManagerTypeToModel returns the resolved model and its scoped query for a given type
protected putCache()
protected putCache($name, $contents): void
protected resetCacheInDebugMode()
protected resetCacheInDebugMode(): void
resetCacheInDebugMode clears the cache when an app, plugin or theme blueprint has changed.
protected resolvePageManagerItemAsChildren()
protected resolvePageManagerItemAsChildren(
$children,
$item,
$theme,
$url,
$recursive = true
): void
protected resolvePageManagerItemAsList()
protected resolvePageManagerItemAsList($type, $item, $url, $theme): array
protected resolvePageManagerItemAsReference()
protected resolvePageManagerItemAsReference($type, $item, $url, $theme): array