PHP Class WPLib_Commit_Reviser, wplib

Since: 0.10.0
Inheritance: extends WPLib_Module_Base
Afficher le fichier Open project: wplib/wplib Class Usage Examples

Méthodes publiques

Méthode Description
_wp_loaded ( ) Inspect the RECENT_COMMIT for both WPLib and WPLib::app_class() and if changed call 'wplib_commit_revised' hook and update option in database.
get_recent_commit ( $class_name, boolean &$defined = null ) : mixed | null | string
load_recent_commit ( string $class_name ) : null Load 7 char abbreviated hash for commit from the system (file or exec).
on_load ( )
recent_commit ( ) : null | string

Private Methods

Méthode Description
_can_have_recent_commit ( string $class_name ) : boolean
_get_recent_commit_file ( string $class_name ) : null
_maybe_update_class ( string $class_name ) Update the RECENT_COMMIT constant for WPLib or the App Class.

Method Details

_wp_loaded() static public méthode

Inspect the RECENT_COMMIT for both WPLib and WPLib::app_class() and if changed call 'wplib_commit_revised' hook and update option in database.
static public _wp_loaded ( )

get_recent_commit() static public méthode

static public get_recent_commit ( $class_name, boolean &$defined = null ) : mixed | null | string
$class_name
$defined boolean
Résultat mixed | null | string

load_recent_commit() static public méthode

Look for a file RECENT_COMMIT if a Git post-commit hook exists and created it otherwise call Git using shell_exec().
static public load_recent_commit ( string $class_name ) : null
$class_name string
Résultat null

on_load() static public méthode

static public on_load ( )

recent_commit() static public méthode

static public recent_commit ( ) : null | string
Résultat null | string