Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
   1  <?php
   2  
   3  /**
   4   * Licensed to Jasig under one or more contributor license
   5   * agreements. See the NOTICE file distributed with this work for
   6   * additional information regarding copyright ownership.
   7   *
   8   * Jasig licenses this file to you under the Apache License,
   9   * Version 2.0 (the "License"); you may not use this file except in
  10   * compliance with the License. You may obtain a copy of the License at:
  11   *
  12   * http://www.apache.org/licenses/LICENSE-2.0
  13   *
  14   * Unless required by applicable law or agreed to in writing, software
  15   * distributed under the License is distributed on an "AS IS" BASIS,
  16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17   * See the License for the specific language governing permissions and
  18   * limitations under the License.
  19   *
  20   *
  21   * PHP Version 7
  22   *
  23   * @file     CAS/OutOfSequenceBeforeClientException.php
  24   * @category Authentication
  25   * @package  PhpCAS
  26   * @author   Joachim Fritschi <jfritschi@freenet.de>
  27   * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
  28   * @link     https://wiki.jasig.org/display/CASC/phpCAS
  29   */
  30  
  31  /**
  32   * This class defines Exceptions that should be thrown when the sequence of
  33   * operations is invalid. In this case it should be thrown when the client() or
  34   *  proxy() call has not yet happened and no client or proxy object exists.
  35   *
  36   * @class    CAS_OutOfSequenceBeforeClientException
  37   * @category Authentication
  38   * @package  PhpCAS
  39   * @author   Joachim Fritschi <jfritschi@freenet.de>
  40   * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
  41   * @link     https://wiki.jasig.org/display/CASC/phpCAS
  42   */
  43  class CAS_OutOfSequenceBeforeClientException
  44  extends CAS_OutOfSequenceException
  45  implements CAS_Exception
  46  {
  47      /**
  48       * Return standard error message
  49       *
  50       * @return void
  51       */
  52      public function __construct ()
  53      {
  54          parent::__construct(
  55              'this method cannot be called before phpCAS::client() or phpCAS::proxy()'
  56          );
  57      }
  58  }