MediaWiki
REL1_22
|
00001 <?php 00031 abstract class ExternalStoreMedium { 00033 protected $params = array(); 00034 00038 public function __construct( array $params = array() ) { 00039 $this->params = $params; 00040 } 00041 00049 abstract public function fetchFromURL( $url ); 00050 00057 public function batchFetchFromURLs( array $urls ) { 00058 $retval = array(); 00059 foreach ( $urls as $url ) { 00060 $data = $this->fetchFromURL( $url ); 00061 // Dont return when false to allow for simpler implementations. 00062 // errored urls are handled in ExternalStore::batchFetchFromURLs 00063 if ( $data !== false ) { 00064 $retval[$urls] = $data; 00065 } 00066 } 00067 return $retval; 00068 } 00069 00078 abstract public function store( $location, $data ); 00079 }