PHP Класс WPDKPlugin

This class is very different from WPDKWordPressPlugin because can describe any WordPress Plugin. Also, it is the logical model of any plugin.
Автор: =undo= ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$active boolean The Active flag
$activeForNetwork boolean TRUE whether the plugin is active for the entire network.
$author string The Author get from get_plugin_data(), 'Author' parameter
$authorName string The Author name from get_plugin_data(), 'AuthorName' parameter
$authorURI string The Author URI from get_plugin_data(), 'AuthorURI' parameter
$description string Long description of plugin
$file string Usually __FILE__
$icon string The standard WPDK 64x64 icon path
$id string This is the ID of plugin. This property is 'folder/main file.php'
$name string Name of plugin
$network string Checks for "Network: true" in the plugin header to see if this should be activated only as a network wide plugin. The plugin would also work when Multisite is not enabled.
$pluginURI string Address of plugin repository
$textDomain string The plugin text domain get from get_plugin_data(), 'Text Domain' parameter
$textDomainPath string The complete Text domain Plugin url get from get_plugin_data(), 'Domain Path' parameter
$title string The plugin title. This is the same as name
$version string Plugin version

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

Метод Описание
__construct ( null $file = null ) : WPDKPlugin Create an instance of WPDKPlugin class

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

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

Create an instance of WPDKPlugin class
public __construct ( null $file = null ) : WPDKPlugin
$file null Optional. Usually constant __FILE__
Результат WPDKPlugin

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

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

The Active flag
public bool $active
Результат boolean

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

TRUE whether the plugin is active for the entire network.
С версии: 1.7.2
public bool $activeForNetwork
Результат boolean

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

The Author get from get_plugin_data(), 'Author' parameter
public string $author
Результат string

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

The Author name from get_plugin_data(), 'AuthorName' parameter
public string $authorName
Результат string

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

The Author URI from get_plugin_data(), 'AuthorURI' parameter
public string $authorURI
Результат string

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

Long description of plugin
public string $description
Результат string

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

Usually __FILE__
С версии: 1.0.0.b4
public string $file
Результат string

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

The standard WPDK 64x64 icon path
public string $icon
Результат string

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

This is the ID of plugin. This property is 'folder/main file.php'
public string $id
Результат string

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

Name of plugin
public string $name
Результат string

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

Checks for "Network: true" in the plugin header to see if this should be activated only as a network wide plugin. The plugin would also work when Multisite is not enabled.
public string $network
Результат string

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

Address of plugin repository
public string $pluginURI
Результат string

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

The plugin text domain get from get_plugin_data(), 'Text Domain' parameter
public string $textDomain
Результат string

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

The complete Text domain Plugin url get from get_plugin_data(), 'Domain Path' parameter
public string $textDomainPath
Результат string

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

The plugin title. This is the same as name
public string $title
Результат string

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

Plugin version
public string $version
Результат string