MediaWiki  1.23.2
Go to the documentation of this file.
1 <?php
31 abstract class ExternalStoreMedium {
33  protected $params = array();
38  public function __construct( array $params = array() ) {
39  $this->params = $params;
40  }
49  abstract public function fetchFromURL( $url );
57  public function batchFetchFromURLs( array $urls ) {
58  $retval = array();
59  foreach ( $urls as $url ) {
60  $data = $this->fetchFromURL( $url );
61  // Dont return when false to allow for simpler implementations.
62  // errored urls are handled in ExternalStore::batchFetchFromURLs
63  if ( $data !== false ) {
64  $retval[$url] = $data;
65  }
66  }
68  return $retval;
69  }
79  abstract public function store( $location, $data );
80 }
Accessable external objects in a particular storage medium.
Definition: ExternalStoreMedium.php:31
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Array $params
Definition: ExternalStoreMedium.php:32
batchFetchFromURLs(array $urls)
Fetch data from given external store URLs.
Definition: ExternalStoreMedium.php:56
store( $location, $data)
Insert a data item into a given location.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
fetchFromURL( $url)
Fetch data from given external store URL.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
__construct(array $params=array())
Definition: ExternalStoreMedium.php:37
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account incomplete not yet checked for validity & $retval
Definition: hooks.txt:237