Method |
Description |
|
AutoBackupEnabled ( ) : boolean |
Checks, if Autobackup is enabled |
|
__construct ( ) |
DotenvEditor constructor |
|
addData ( array $data = [] ) : boolean |
Add data to the current env file. |
|
changeEnv ( array $data = [] ) : boolean |
Change the given values of the current env file. |
|
createBackup ( ) : boolean |
Used to create a backup of the current .env. |
|
deleteBackup ( $timestamp ) |
Delete the given backup-file |
|
deleteData ( array $data = [] ) : boolean |
Delete one or more entries from the env file. |
|
getAsJson ( null $timestamp = NULL ) : string |
Returns the given .env as JSON array containing all entries as object
with key and value |
|
getBackupFile ( $timestamp ) : string |
Returns filename and path for the given timestamp |
|
getBackupPath ( ) : mixed |
Returns the current backup-path |
|
getBackupVersions ( ) : array |
Returns an array with all available backups. |
|
getContent ( null $timestamp = NULL ) : array |
Returns the content of a given backup file
or the content of the current env file. |
|
getValue ( $key ) : mixed |
Returns the value matching to a given key. |
|
keyExists ( $key ) : boolean |
Checks, if a given key exists in your .env-file. |
|
restoreBackup ( null $timestamp = NULL ) : string |
Restores the latest backup or a backup from a given timestamp. |
|
setAutoBackup ( $onOff ) |
Activate or deactivate the AutoBackup-Functionality |
|
setBackupPath ( $path ) : boolean |
Set a new backup-path. |
|