PHP Class Papi_Loader, papi

Inheritance: extends Papi_Container
显示文件 Open project: wp-papi/papi Class Usage Examples

Public Properties

Property Type Description
$name string The plugin name.

Protected Properties

Property Type Description
$instance Papi_Loader The instance of Papi loader class.

Public Methods

Method Description
__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.

Protected Methods

Method Description
__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.

Method Details

__call() public method

Call function in the container.
public __call ( string $name, array $arguments ) : mixed
$name string
$arguments array
return mixed

__clone() public method

Cloning is forbidden.
public __clone ( )

__construct() protected method

The constructor.
protected __construct ( )

__wakeup() public method

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

constants() protected method

Bootstrap constants
protected constants ( )

deactivate() public static method

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

define() protected method

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

init() protected method

Initialise Papi.
protected init ( )

instance() public static method

Papi loader instance.
public static instance ( ) : Papi_Loader
return Papi_Loader

load_textdomain() protected method

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() protected method

Require files.
protected require_files ( )

setup_container() protected method

Setup container.
protected setup_container ( )

Property Details

$instance protected_oe static_oe property

The instance of Papi loader class.
protected static Papi_Loader $instance
return Papi_Loader

$name public_oe property

The plugin name.
public string $name
return string