[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_media/src/Event/ -> OAuthCallbackEvent.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_media
   6   *
   7   * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  namespace Joomla\Component\Media\Administrator\Event;
  12  
  13  use Joomla\CMS\Event\AbstractEvent;
  14  use Joomla\Input\Input;
  15  
  16  // phpcs:disable PSR1.Files.SideEffects
  17  \defined('_JEXEC') or die;
  18  // phpcs:enable PSR1.Files.SideEffects
  19  
  20  /**
  21   * Event object to retrieve OAuthCallbacks.
  22   *
  23   * @since  4.0.0
  24   */
  25  class OAuthCallbackEvent extends AbstractEvent
  26  {
  27      /**
  28       * The event context.
  29       *
  30       * @var string
  31       *
  32       * @since  4.0.0
  33       */
  34      private $context = null;
  35  
  36      /**
  37       * The event input.
  38       *
  39       * @var    Input
  40       *
  41       * @since  4.0.0
  42       */
  43      private $input = null;
  44  
  45      /**
  46       * Get the event context.
  47       *
  48       * @return string
  49       *
  50       * @since  4.0.0
  51       */
  52      public function getContext()
  53      {
  54          return $this->context;
  55      }
  56  
  57      /**
  58       * Set the event context.
  59       *
  60       * @param   string  $context  Event context
  61       *
  62       * @return void
  63       *
  64       * @since  4.0.0
  65       */
  66      public function setContext($context)
  67      {
  68          $this->context = $context;
  69      }
  70  
  71      /**
  72       * Get the event input.
  73       *
  74       * @return  Input
  75       *
  76       * @since  4.0.0
  77       */
  78      public function getInput()
  79      {
  80          return $this->input;
  81      }
  82  
  83      /**
  84       * Set the event input.
  85       *
  86       * @param   Input  $input  Event input
  87       *
  88       * @return void
  89       *
  90       * @since  4.0.0
  91       */
  92      public function setInput($input)
  93      {
  94          $this->input = $input;
  95      }
  96  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer