PHP Class Wallmander\ElasticsearchIndexer\Model\Config

Author: Mikael Mattsson ([email protected])
Exibir arquivo Open project: wallmanderco/elasticsearch-indexer Class Usage Examples

Public Methods

Method Description
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.

Method Details

enabledFullIntegration() public static method

public static enabledFullIntegration ( )

enabledIntegration() public static method

public static enabledIntegration ( )

getFirstHost() public static method

public static getFirstHost ( )

getHosts() public static method

public static getHosts ( )

getIndexName() public static method

public static getIndexName ( $blogID )

load() public static method

Fetch config array from a file in the config directory.
public static load ( string $config ) : array
$config string
return array

option() public static method

Get option from wp_options table.
public static option ( $key ) : mixed | void
$key
return mixed | void

optionKey() public static method

Prepend the option prefix to a key.
public static optionKey ( $key ) : string
$key
return string

setOption() public static method

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