PHP Класс Inpsyde\MultilingualPress\Core\ImmutablePluginProperties

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Common\PluginProperties
Показать файл Открыть проект

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

Метод Описание
__construct ( string $plugin_file_path ) Constructor. Sets up the properties.
offsetExists ( string $name ) : boolean Checks if a property with the given name exists.
offsetGet ( string $name ) : mixed Returns the value of the property with the given name.
offsetSet ( string $name, mixed $value ) : void Stores the given value with the given name.
offsetUnset ( string $name ) : void Removes the property with the given name.
plugin_base_name ( ) : string Returns the base name of the plugin.
plugin_dir_path ( ) : string Returns the absolute path of the plugin root folder.
plugin_dir_url ( ) : string Returns the URL of the plugin root folder.
plugin_file_path ( ) : string Returns the absolute path of main plugin file.
plugin_name ( ) : string Returns the plugin name as given in the plugin headers.
plugin_website ( ) : string Returns the URL of the plugin website.
text_domain ( ) : string Returns the plugin text domain.
text_domain_path ( ) : string Returns the absolute path of the folder with the plugin translation files.
version ( ) : string Returns the plugin version.

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

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

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( string $plugin_file_path )
$plugin_file_path string Main plugin file path.

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

Checks if a property with the given name exists.
С версии: 3.0.0
public offsetExists ( string $name ) : boolean
$name string The name of a property.
Результат boolean Whether or not a property with the given name exists.

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

Returns the value of the property with the given name.
С версии: 3.0.0
public offsetGet ( string $name ) : mixed
$name string The name of a property.
Результат mixed The value of the property with the given name.

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

Setting properties is not allowed.
С версии: 3.0.0
public offsetSet ( string $name, mixed $value ) : void
$name string The name of a property.
$value mixed The value.
Результат void

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

Removing properties is not allowed.
С версии: 3.0.0
public offsetUnset ( string $name ) : void
$name string The name of a property.
Результат void

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

Returns the base name of the plugin.
С версии: 3.0.0
public plugin_base_name ( ) : string
Результат string The base name of the plugin.

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

Returns the absolute path of the plugin root folder.
С версии: 3.0.0
public plugin_dir_path ( ) : string
Результат string The absolute path of the plugin root folder.

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

Returns the URL of the plugin root folder.
С версии: 3.0.0
public plugin_dir_url ( ) : string
Результат string The URL of the plugin root folder.

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

Returns the absolute path of main plugin file.
С версии: 3.0.0
public plugin_file_path ( ) : string
Результат string The absolute path of main plugin file.

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

Returns the plugin name as given in the plugin headers.
С версии: 3.0.0
public plugin_name ( ) : string
Результат string The plugin name.

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

Returns the URL of the plugin website.
С версии: 3.0.0
public plugin_website ( ) : string
Результат string The URL of the plugin website

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

Returns the plugin text domain.
С версии: 3.0.0
public text_domain ( ) : string
Результат string The plugin text domain.

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

Returns the absolute path of the folder with the plugin translation files.
С версии: 3.0.0
public text_domain_path ( ) : string
Результат string The absolute path of the folder with the plugin translation files.

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

Returns the plugin version.
С версии: 3.0.0
public version ( ) : string
Результат string The plugin version.