메소드 | 설명 | |
---|---|---|
__construct ( |
||
canRevert ( ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
checkPermissions ( WP_REST_Request $request ) : WP_Erro\WP_Error | boolean | ||
commit ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | Creates manual commit. Adds everything to stage. | |
discardChanges ( ) : WP_REST_Response | Discards all changes in working directory. | |
displayWelcomePanel ( ) : WP_REST_Response | ||
getAutocompleteConfig ( ) : WP_REST_Response | Returns current WP configuration for autocomplete component. | |
getCommits ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
getDiff ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | Returns diff of given commit. | |
getError ( string $status ) : WP_Error | ||
getGitStatus ( ) : WP_REST_Response | Returns list of files with modification types. | |
hideWelcomePanel ( ) : WP_REST_Response | ||
registerRoutes ( ) | Register the VersionPress related routes | |
revertCommits ( string $reverterMethod, array $commits ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
rollbackToCommit ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
shouldUpdate ( WP_REST_Request $request ) | ||
undoCommits ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |
메소드 | 설명 | |
---|---|---|
convertChangeInfo ( $changeInfo ) | ||
convertChangeInfoList ( $getChangeInfoList ) | ||
getFileChanges ( |
||
getInitialCommitHash ( ) : string | ||
handleAsAdminSectionRoute ( string $routeHandler ) : Closure | Adds WP_ADMIN constant before route handling function is called. Routes calls are than evaluated as called in admin section of WordPress even if the routes are called using AJAX (WordPress native function is_admin() evaluates call correctly. | |
handleErrorOutput ( callable | string $routeHandler ) : Closure | Prevents unexpected output from displaying to output, adds it to the response json instead. | |
registerRestRoute ( $route, $args = [], $override = false ) | ||
updateDatabase ( $status ) |
public __construct ( |
||
$gitRepository | ||
$reverter | ||
$synchronizationProcess | ||
$commitMessageParser |
public canRevert ( ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
리턴 | WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |
public checkPermissions ( WP_REST_Request $request ) : WP_Erro\WP_Error | boolean | ||
$request | WP_REST_Request | |
리턴 | WP_Erro\WP_Error | boolean |
public commit ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
$request | WP_REST_Request | |
리턴 | WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |
public discardChanges ( ) : WP_REST_Response | ||
리턴 | WP_REST_Response |
public getAutocompleteConfig ( ) : WP_REST_Response | ||
리턴 | WP_REST_Response |
public getCommits ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
$request | WP_REST_Request | |
리턴 | WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |
public getDiff ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
$request | WP_REST_Request | |
리턴 | WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |
public getGitStatus ( ) : WP_REST_Response | ||
리턴 | WP_REST_Response |
public revertCommits ( string $reverterMethod, array $commits ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
$reverterMethod | string | |
$commits | array | |
리턴 | WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |
public rollbackToCommit ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
$request | WP_REST_Request | |
리턴 | WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |
public undoCommits ( WP_REST_Request $request ) : WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error | ||
$request | WP_REST_Request | |
리턴 | WP_REST_Respons\WP_REST_Response | WP_Erro\WP_Error |