SettingsCommand
extends BaseCommand
in package
Show or set AtoM settings.
Reads from and writes to the setting / setting_i18n tables.
Usage: php bin/atom tools:settings # List all settings php bin/atom tools:settings --name=site_title # Show a specific setting php bin/atom tools:settings --name=site_title --value="My Archive" # Set a value
Table of Contents
Methods
- __construct() : mixed
- getDescription() : string
- Get the command description.
- getName() : string
- Get the command name.
- getNamespace() : string
- Get the namespace portion of the command name.
- run() : int
- Run the command (called by the CLI router).
Methods
__construct()
public
__construct([array<string|int, mixed> $argv = [] ]) : mixed
Parameters
- $argv : array<string|int, mixed> = []
getDescription()
Get the command description.
public
getDescription() : string
Return values
stringgetName()
Get the command name.
public
getName() : string
Return values
stringgetNamespace()
Get the namespace portion of the command name.
public
getNamespace() : string
Return values
stringrun()
Run the command (called by the CLI router).
public
run() : int