PHP Класс Papi_Loader, papi

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

Открытые свойства

Свойство Тип Описание
$name string The plugin name.

Защищенные свойства (Protected)

Свойство Тип Описание
$instance Papi_Loader The instance of Papi loader class.

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

Метод Описание
__call ( string $name, array $arguments ) : mixed Call function in the container.
__clone ( ) Cloning is forbidden.
__wakeup ( ) Unserializing instances of this class is forbidden.
deactivate ( ) Deactivate Papi if the WordPress version is lower then 4.0.
instance ( ) : Papi_Loader Papi loader instance.

Защищенные методы

Метод Описание
__construct ( ) The constructor.
constants ( ) Bootstrap constants
define ( string $name, string | boolean $value ) Define constant if not already set.
init ( ) Initialise Papi.
load_textdomain ( ) Load Localisation files.
require_files ( ) Require files.
setup_container ( ) Setup container.

Описание методов

__call() публичный Метод

Call function in the container.
public __call ( string $name, array $arguments ) : mixed
$name string
$arguments array
Результат mixed

__clone() публичный Метод

Cloning is forbidden.
public __clone ( )

__construct() защищенный Метод

The constructor.
protected __construct ( )

__wakeup() публичный Метод

Unserializing instances of this class is forbidden.
public __wakeup ( )

constants() защищенный Метод

Bootstrap constants
protected constants ( )

deactivate() публичный статический Метод

Deactivate Papi if the WordPress version is lower then 4.0.
public static deactivate ( )

define() защищенный Метод

Define constant if not already set.
protected define ( string $name, string | boolean $value )
$name string
$value string | boolean

init() защищенный Метод

Initialise Papi.
protected init ( )

instance() публичный статический Метод

Papi loader instance.
public static instance ( ) : Papi_Loader
Результат Papi_Loader

load_textdomain() защищенный Метод

Locales found in: - WP_LANG_DIR/papi/papi-LOCALE.mo - WP_CONTENT_DIR/[mu-]plugins/papi/languages/papi-LOCALE.mo
protected load_textdomain ( )

require_files() защищенный Метод

Require files.
protected require_files ( )

setup_container() защищенный Метод

Setup container.
protected setup_container ( )

Описание свойств

$instance защищенное статическое свойство

The instance of Papi loader class.
protected static Papi_Loader $instance
Результат Papi_Loader

$name публичное свойство

The plugin name.
public string $name
Результат string