PHP Class VersionPress\Cli\VPInternalCommand

## USAGE These internal commands are not registered with WP-CLI automatically like the "public" wp vp commands in versionpress.php. You have to manually require the file, e.g.: wp --require=wp-content/plugins/versionpress/src/Cli/vp-internal.php vp-internal ... These internal commands are mostly used by public wp vp commands.
Inheritance: extends WP_CLI_Comman\WP_CLI_Command
Mostra file Open project: versionpress/versionpress

Public Methods

Method Description
commitFrequentlyWrittenEntities ( $args = [], $assoc_args = [] ) Used before pull
finishPush ( $args, $assoc_args ) Finishes vp push
finishRestore ( $args, $assoc_args ) Finishes clone operation
finishUpdate ( $args, $assoc_args ) Finishes the update with new version
flushRegenerableValues ( )
getEntityId ( $args = [], $assoc_args = [] ) Gets id of an entity from vp_id table
getEntityVpid ( $args = [], $assoc_args = [] ) Gets vp_id Guid of an entity from id and entity name
maintenance ( $args ) Turns on or off the maintenance mode.
updateConfig ( $args = [], $assoc_args = [] ) Sets or updates constant or variable in wp-config.php

Private Methods

Method Description
flushRewriteRules ( )

Method Details

commitFrequentlyWrittenEntities() public method

Used before pull
public commitFrequentlyWrittenEntities ( $args = [], $assoc_args = [] )

finishPush() public method

Finishes vp push
public finishPush ( $args, $assoc_args )

finishRestore() public method

Finishes clone operation
public finishRestore ( $args, $assoc_args )

finishUpdate() public method

Finishes the update with new version
public finishUpdate ( $args, $assoc_args )

flushRegenerableValues() public method

getEntityId() public method

## OPTIONS --vpid=
public getEntityId ( $args = [], $assoc_args = [] )

getEntityVpid() public method

## OPTIONS --id= --name=
public getEntityVpid ( $args = [], $assoc_args = [] )

maintenance() public method

## OPTIONS : Desired state of maintenance mode. Possible values are 'on' or 'off'.
public maintenance ( $args )

updateConfig() public method

## OPTIONS : Name of constant or variable that will be changed. : Desired value. Supported types are: string, int, float and bool. [--plain] : The value will be used as is - without type detection, quoting etc. [--variable] : Will set a variable instead of constant. Useful for $table_prefix. [--common] : The constant / variable will be set in wp-config.common.php.
public updateConfig ( $args = [], $assoc_args = [] )