MediaWiki master
MediaWiki\Config\IterableConfig Interface Reference

Interface for iterable configuration instances. More...

Inherits MediaWiki\Config\Config, and IteratorAggregate.

Inherited by MediaWiki\Config\HashConfig.

Collaboration diagram for MediaWiki\Config\IterableConfig:

Public Member Functions

 getIterator ()
 Returns a traversable view of the configuration variables in this Config object.
 
 getNames ()
 Returns the names of configuration variables in this Config object.
 
- Public Member Functions inherited from MediaWiki\Config\Config
 get ( $name)
 Get a configuration variable such as "Sitename" or "UploadMaintenance.".
 
 has ( $name)
 Check whether a configuration option is set for the given name.
 

Detailed Description

Interface for iterable configuration instances.

Stability: stable
to implement
Since
1.38

Definition at line 35 of file IterableConfig.php.

Member Function Documentation

◆ getIterator()

MediaWiki\Config\IterableConfig::getIterator ( )

Returns a traversable view of the configuration variables in this Config object.

Returns
Traversable<string,mixed>

Implemented in MediaWiki\Config\HashConfig.

◆ getNames()

MediaWiki\Config\IterableConfig::getNames ( )

Returns the names of configuration variables in this Config object.

Returns
string[]

Implemented in MediaWiki\Config\HashConfig.


The documentation for this interface was generated from the following file: