PHP Class WPLib_Commit_Reviser, wplib

Since: 0.10.0
Inheritance: extends WPLib_Module_Base
Mostrar archivo Open project: wplib/wplib Class Usage Examples

Public Methods

Method 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

Method 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 method

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 method

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

load_recent_commit() static public method

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
return null

on_load() static public method

static public on_load ( )

recent_commit() static public method

static public recent_commit ( ) : null | string
return null | string