PHP Class Wallmander\ElasticsearchIndexer\Model\Config

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

Méthodes publiques

Méthode 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 méthode

public static enabledFullIntegration ( )

enabledIntegration() public static méthode

public static enabledIntegration ( )

getFirstHost() public static méthode

public static getFirstHost ( )

getHosts() public static méthode

public static getHosts ( )

getIndexName() public static méthode

public static getIndexName ( $blogID )

load() public static méthode

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

option() public static méthode

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

optionKey() public static méthode

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

setOption() public static méthode

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