Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.
   1  <?php
   2  /**
   3   * Copyright 2012-2017 Horde LLC (http://www.horde.org/)
   4   *
   5   * See the enclosed file LICENSE for license information (LGPL). If you
   6   * did not receive this file, see http://www.horde.org/licenses/lgpl21.
   7   *
   8   * @category  Horde
   9   * @copyright 2012-2017 Horde LLC
  10   * @license   http://www.horde.org/licenses/lgpl21 LGPL 2.1
  11   * @package   Imap_Client
  12   */
  13  
  14  /**
  15   * Exception thrown if search query text cannot be converted to different
  16   * charset.
  17   *
  18   * @author    Michael Slusarz <slusarz@horde.org>
  19   * @category  Horde
  20   * @copyright 2012-2017 Horde LLC
  21   * @license   http://www.horde.org/licenses/lgpl21 LGPL 2.1
  22   * @package   Imap_Client
  23   */
  24  class Horde_Imap_Client_Exception_SearchCharset
  25  extends Horde_Imap_Client_Exception
  26  {
  27      /**
  28       * Charset that was attempted to be converted to.
  29       *
  30       * @var string
  31       */
  32      public $charset;
  33  
  34      /**
  35       * Constructor.
  36       *
  37       * @param string $charset  The charset that was attempted to be converted
  38       *                         to.
  39       */
  40      public function __construct($charset)
  41      {
  42          $this->charset = $charset;
  43  
  44          parent::__construct(
  45              Horde_Imap_Client_Translation::r("Cannot convert search query text to new charset"),
  46              self::BADCHARSET
  47          );
  48      }
  49  
  50  }