- md5
- 1b3210125a58dd8d7ec89704d60da7bb
- sha1
- d5dfcc0d014d67eeb8838a9771de71273490679d
- sha256
- a70ef92f5643b31e95d79b80763ed256c09aade27448c8b1b9c507d93f9de5d0
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
<?php
/**
* @package Joomla.Administrator
* @subpackage com_guidedtours
*
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Guidedtours\Administrator\Extension;
use Joomla\CMS\Extension\BootableExtensionInterface;
use Joomla\CMS\Extension\MVCComponent;
use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
use Psr\Container\ContainerInterface;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Component class for com_guidedtours
*
* @since 4.3.0
*/
class GuidedtoursComponent extends MVCComponent implements BootableExtensionInterface
{
use HTMLRegistryAwareTrait;
/**
* The step type
*
* @since 4.3.0
*/
public const STEP_TYPE_NAMES = [
self::STEP_NEXT => 'COM_GUIDEDTOURS_FIELD_VALUE_STEP_TYPE_NEXT',
self::STEP_REDIRECT => 'COM_GUIDEDTOURS_FIELD_VALUE_STEP_TYPE_REDIRECT',
self::STEP_INTERACTIVE => 'COM_GUIDEDTOURS_FIELD_VALUE_STEP_TYPE_INTERACTIVE',
];
/**
* A regular step.
*
* @since 4.3.0
*/
public const STEP_NEXT = 0;
/**
* A step that redirects to another page.
*
* @since 4.3.0
*/
public const STEP_REDIRECT = 1;
/**
* A step that allows interactions from the user.
*
* @since 4.3.0
*/
public const STEP_INTERACTIVE = 2;
/**
* The step interactive type names
*
* @since 4.3.0
*/
public const STEP_INTERACTIVETYPE_NAMES = [
self::STEP_INTERACTIVETYPE_FORM_SUBMIT => 'COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_FORM_SUBMIT',
self::STEP_INTERACTIVETYPE_TEXT => 'COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_TEXT_FIELD',
self::STEP_INTERACTIVETYPE_BUTTON => 'COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_BUTTON',
self::STEP_INTERACTIVETYPE_OTHER => 'COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_OTHER',
self::STEP_INTERACTIVETYPE_CHECKBOX_RADIO => 'COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_CHECKBOX_RADIO_FIELD',
self::STEP_INTERACTIVETYPE_SELECT => 'COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_SELECT_LIST',
];
/**
* An interactive step where a user clicks on a form button.
*
* @since 4.3.0
*/
public const STEP_INTERACTIVETYPE_FORM_SUBMIT = 1;
/**
* An interactive step where a user enters text.
*
* @since 4.3.0
*/
public const STEP_INTERACTIVETYPE_TEXT = 2;
/**
* An interactive step where a user clicks on a button.
*
* @since 4.3.0
*/
public const STEP_INTERACTIVETYPE_BUTTON = 4;
/**
* An interactive step for other fields.
*
* @since 4.3.0
*/
public const STEP_INTERACTIVETYPE_OTHER = 3;
/**
* An interactive step for checkbox/radio fields
*
* @since 5.1.0
*/
public const STEP_INTERACTIVETYPE_CHECKBOX_RADIO = 5;
/**
* An interactive step for select element fields
*
* @since 5.1.0
*/
public const STEP_INTERACTIVETYPE_SELECT = 6;
/**
* Booting the extension. This is the function to set up the environment of the extension like
* registering new class loaders, etc.
*
* If required, some initial set up can be done from services of the container, eg.
* registering HTML services.
*
* @param ContainerInterface $container The container
*
* @return void
*
* @since 4.3.0
*/
public function boot(ContainerInterface $container)
{
}
}
The same content is in 132 releases, Joomla 5.1.0-beta2 to 6.2.1-rc1. See them all, or every version of this file.