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])
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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