PHP 클래스 WPLib_Commit_Reviser, wplib

부터: 0.10.0
상속: extends WPLib_Module_Base
파일 보기 프로젝트 열기: wplib/wplib 1 사용 예제들

공개 메소드들

메소드 설명
_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

비공개 메소드들

메소드 설명
_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.

메소드 상세

_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.
static public _wp_loaded ( )

get_recent_commit() 정적인 공개 메소드

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

load_recent_commit() 정적인 공개 메소드

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
리턴 null

on_load() 정적인 공개 메소드

static public on_load ( )

recent_commit() 정적인 공개 메소드

static public recent_commit ( ) : null | string
리턴 null | string