[ Index ]

PHP Cross Reference of phpBB-3.3.0-deutsch

title

Body

[close]

/phpbb/mimetype/ -> guesser_interface.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  namespace phpbb\mimetype;
  15  
  16  interface guesser_interface
  17  {
  18      /**
  19      * Returns whether this guesser is supported on the current OS
  20      *
  21      * @return bool True if guesser is supported, false if not
  22      */
  23  	public function is_supported();
  24  
  25      /**
  26      * Guess mimetype of supplied file
  27      *
  28      * @param string $file Path to file
  29      * @param string $file_name The real file name
  30      *
  31      * @return string Guess for mimetype of file
  32      */
  33  	public function guess($file, $file_name = '');
  34  
  35      /**
  36      * Get the guesser priority
  37      *
  38      * @return int Guesser priority
  39      */
  40  	public function get_priority();
  41  
  42      /**
  43      * Set the guesser priority
  44      *
  45      * @param int Guesser priority
  46      *
  47      * @return void
  48      */
  49  	public function set_priority($priority);
  50  }


Generated: Tue Apr 7 19:44:41 2020 Cross-referenced by PHPXref 0.7.1