Documentation du code de SPIP et de ses plugins

SPIP

ConfigEcrireCommand extends Command
in package
implements RequiresSpipInterface

FinalYes
Attributes
#[AsCommand]
$name: 'config:ecrire'
$description: 'Écrit des options de configuration dans spip_meta.'

Table of Contents

Interfaces

RequiresSpipInterface

Methods

configure()  : void
execute()  : int
decodeJson()  : array<string, mixed>|null
flattenOptions()  : array<string, mixed>
formatValue()  : string
normalizePluginPrefix()  : string
parseEntryArguments()  : array<string, mixed>|null

Methods

execute()

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

decodeJson()

private decodeJson(string $json, string $source, SymfonyStyle $io) : array<string, mixed>|null
Parameters
$json : string
$source : string
$io : SymfonyStyle
Return values
array<string, mixed>|null

flattenOptions()

private flattenOptions(array<string, mixed> $data[, string $prefix = '' ]) : array<string, mixed>
Parameters
$data : array<string, mixed>
$prefix : string = ''
Return values
array<string, mixed>

normalizePluginPrefix()

private normalizePluginPrefix(mixed $plugin) : string
Parameters
$plugin : mixed
Return values
string

parseEntryArguments()

private parseEntryArguments(array<int, string> $entries, mixed $singleValueOption, string $pluginPrefix, SymfonyStyle $io) : array<string, mixed>|null
Parameters
$entries : array<int, string>
$singleValueOption : mixed
$pluginPrefix : string
$io : SymfonyStyle
Return values
array<string, mixed>|null

        
On this page

Search results