EntityFinderCommand
extends Command
Table of Contents
Properties
-
$defaultName
: mixed
-
$connection
: Connection
-
$contaoFramework
: ContaoFramework
-
$entityFinderHelper
: EntityFinderHelper
-
$eventDispatcher
: EventDispatcherInterface
-
$finder
: Finder
-
$utils
: Utils
Methods
-
__construct()
: mixed
-
configure()
: mixed
-
execute()
: mixed
-
createText()
: string
-
findEntity()
: string|null
-
findFrontendModuleParents()
: void
-
findInserttags()
: void
-
loop()
: array<string|int, mixed>
-
output()
: void
-
runExtendEntityFinderEvent()
: ExtendEntityFinderEvent
$defaultName
protected
static mixed
$defaultName
= 'huh:utils:entity_finder'
$connection
private
Connection
$connection
$contaoFramework
private
ContaoFramework
$contaoFramework
$entityFinderHelper
private
EntityFinderHelper
$entityFinderHelper
$eventDispatcher
private
EventDispatcherInterface
$eventDispatcher
$finder
private
Finder
$finder
$utils
private
Utils
$utils
__construct()
public
__construct(ContaoFramework $contaoFramework, EventDispatcherInterface $eventDispatcher, Connection $connection, EntityFinderHelper $entityFinderHelper, Utils $utils, Finder $finder) : mixed
Parameters
-
$contaoFramework
: ContaoFramework
-
-
$eventDispatcher
: EventDispatcherInterface
-
-
$connection
: Connection
-
-
$entityFinderHelper
: EntityFinderHelper
-
-
$utils
: Utils
-
-
$finder
: Finder
-
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
-
$input
: InputInterface
-
-
$output
: OutputInterface
-
createText()
private
createText(string $table, mixed $id) : string
Parameters
-
$table
: string
-
-
$id
: mixed
-
findEntity()
private
findEntity(string $table, mixed $id, array<string|int, mixed> &$parents[, bool $onlyText = false ]) : string|null
Parameters
-
$table
: string
-
-
$id
: mixed
-
-
$parents
: array<string|int, mixed>
-
-
$onlyText
: bool
= false
-
Return values
string|null
findFrontendModuleParents()
private
findFrontendModuleParents(ModuleModel $module, array<string|int, mixed> &$parents) : void
Parameters
-
$module
: ModuleModel
-
-
$parents
: array<string|int, mixed>
-
private
findInserttags(ExtendEntityFinderEvent $event) : void
Parameters
-
$event
: ExtendEntityFinderEvent
-
loop()
private
loop(string $table, mixed $id) : array<string|int, mixed>
Parameters
-
$table
: string
-
-
$id
: mixed
-
Return values
array<string|int, mixed>
output()
private
output(SymfonyStyle $io, array<string|int, mixed> $tree[, string $prepend = '' ][, int $depth = 0 ]) : void
Parameters
-
$io
: SymfonyStyle
-
-
$tree
: array<string|int, mixed>
-
-
$prepend
: string
= ''
-
-
$depth
: int
= 0
-
runExtendEntityFinderEvent()
private
runExtendEntityFinderEvent(string $table, mixed $id, array<string|int, mixed> $parents[, bool $onlyText = false ]) : ExtendEntityFinderEvent
Parameters
-
$table
: string
-
-
$id
: mixed
-
-
$parents
: array<string|int, mixed>
-
-
$onlyText
: bool
= false
-