mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-15 03:35:01 +00:00
35 lines
557 B
PHP
35 lines
557 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Implements the EchoContainmentList interface for php arrays. Possible source
|
||
|
* of arrays includes $wg* global variables initialized from extensions or global
|
||
|
* wiki config.
|
||
|
*/
|
||
|
class EchoArrayList implements EchoContainmentList {
|
||
|
/**
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $list;
|
||
|
|
||
|
/**
|
||
|
* @param array $list
|
||
|
*/
|
||
|
public function __construct( array $list ) {
|
||
|
$this->list = $list;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
public function getValues() {
|
||
|
return $this->list;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
public function getCacheKey() {
|
||
|
return '';
|
||
|
}
|
||
|
}
|