PHP Класс Wallmander\ElasticsearchIndexer\Model\Config

Автор: Mikael Mattsson ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
enabledFullIntegration ( )
enabledIntegration ( )
getFirstHost ( )
getHosts ( )
getIndexName ( $blogID )
load ( string $config ) : array Fetch config array from a file in the config directory.
option ( $key ) : mixed | void Get option from wp_options table.
optionKey ( $key ) : string Prepend the option prefix to a key.
setOption ( $key, $value, null | string $autoload = null ) Save an option to wp_options table.

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

enabledFullIntegration() публичный статический Метод

public static enabledFullIntegration ( )

enabledIntegration() публичный статический Метод

public static enabledIntegration ( )

getFirstHost() публичный статический Метод

public static getFirstHost ( )

getHosts() публичный статический Метод

public static getHosts ( )

getIndexName() публичный статический Метод

public static getIndexName ( $blogID )

load() публичный статический Метод

Fetch config array from a file in the config directory.
public static load ( string $config ) : array
$config string
Результат array

option() публичный статический Метод

Get option from wp_options table.
public static option ( $key ) : mixed | void
$key
Результат mixed | void

optionKey() публичный статический Метод

Prepend the option prefix to a key.
public static optionKey ( $key ) : string
$key
Результат string

setOption() публичный статический Метод

Save an option to wp_options table.
public static setOption ( $key, $value, null | string $autoload = null )
$key
$value
$autoload null | string