PHP Класс GravityFormsIframe_AbstractPlugin

С версии: 2.0.0
Показать файл Открыть проект

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

Свойство Тип Описание
$basename string Ex: plugin-name/plugin-name.php
$directory string Absolute path to the main plugin directory.
$file string Absolute path to the main plugin file.
$slug string Plugin identifier.
$url string URL to the main plugin directory.

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

Метод Описание
get_basename ( ) : string Retrieve the relative path to the main plugin file from the plugin directory.
get_directory ( ) : string Retrieve the plugin directory.
get_file ( ) : string Retrieve the absolute path for the main plugin file.
get_path ( string $path = '' ) : string Retrieve the path to a file in the plugin.
get_slug ( ) : string Retrieve the plugin indentifier.
get_url ( string $path = '' ) : string Retrieve the URL for a file in the plugin.
register_hooks ( object $provider ) Register a hook provider.
set_basename ( string $basename ) : string Set the plugin basename.
set_directory ( string $directory ) Set the plugin's directory.
set_file ( string $file ) Set the path to the main plugin file.
set_slug ( string $slug ) Set the plugin identifier.
set_url ( string $url ) Set the URL for plugin directory root.

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

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

Retrieve the relative path to the main plugin file from the plugin directory.
С версии: 2.0.0
public get_basename ( ) : string
Результат string

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

Retrieve the plugin directory.
С версии: 2.0.0
public get_directory ( ) : string
Результат string

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

Retrieve the absolute path for the main plugin file.
С версии: 2.0.0
public get_file ( ) : string
Результат string

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

Retrieve the path to a file in the plugin.
С версии: 2.0.0
public get_path ( string $path = '' ) : string
$path string Optional. Path relative to the plugin root.
Результат string

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

Retrieve the plugin indentifier.
С версии: 2.0.0
public get_slug ( ) : string
Результат string

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

Retrieve the URL for a file in the plugin.
С версии: 2.0.0
public get_url ( string $path = '' ) : string
$path string Optional. Path relative to the plugin root.
Результат string

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

Register a hook provider.
С версии: 2.0.0
public register_hooks ( object $provider )
$provider object Hook provider.

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

Set the plugin basename.
С версии: 2.0.0
public set_basename ( string $basename ) : string
$basename string Relative path from the main plugin directory.
Результат string

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

Set the plugin's directory.
С версии: 2.0.0
public set_directory ( string $directory )
$directory string Absolute path to the main plugin directory.

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

Set the path to the main plugin file.
С версии: 2.0.0
public set_file ( string $file )
$file string Absolute path to the main plugin file.

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

Set the plugin identifier.
С версии: 2.0.0
public set_slug ( string $slug )
$slug string Plugin identifier.

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

Set the URL for plugin directory root.
С версии: 2.0.0
public set_url ( string $url )
$url string URL to the root of the plugin directory.

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

$basename защищенное свойство

Ex: plugin-name/plugin-name.php
С версии: 2.0.0
protected string $basename
Результат string

$directory защищенное свойство

Absolute path to the main plugin directory.
С версии: 2.0.0
protected string $directory
Результат string

$file защищенное свойство

Absolute path to the main plugin file.
С версии: 2.0.0
protected string $file
Результат string

$slug защищенное свойство

Plugin identifier.
С версии: 2.0.0
protected string $slug
Результат string

$url защищенное свойство

URL to the main plugin directory.
С версии: 2.0.0
protected string $url
Результат string