PHP Класс WPLib_Commit_Reviser, wplib

С версии: 0.10.0
Наследование: extends WPLib_Module_Base
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
_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