mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-16 04:12:07 +00:00
254cf8360b
All files containing more than one PHP class were split into multiple files. extension.json was updated to match new class locations. Bug: T177809 Change-Id: I4e7d8f02164c3048c41c4c9fbe4be18a99e7abaa
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 '';
|
|
}
|
|
}
|