[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/extensions/LocalisationUpdate/fetcher/ -> Fetcher.php (source)

   1  <?php
   2  /**
   3   * @file
   4   * @author Niklas Laxström
   5   * @license GPL-2.0+
   6   */
   7  
   8  /**
   9   * Interface for classes which fetch files over different protocols and ways.
  10   */
  11  interface LU_Fetcher {
  12      /**
  13       * Fetches a single resource.
  14       *
  15       * @return bool|string False on failure.
  16       */
  17  	public function fetchFile( $url );
  18  
  19      /**
  20       * Fetch a list of resources. This has the benefit of being able to pick up
  21       * new languages as they appear if languages are stored in separate files.
  22       *
  23       * @return array
  24       */
  25  	public function fetchDirectory( $pattern );
  26  }


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1