Your IP : 216.73.217.80


Current Path : /home/jlgagfroyt/www/plugins/system/articlesanywhere/src/Collection/Filters/
Upload File :
Current File : /home/jlgagfroyt/www/plugins/system/articlesanywhere/src/Collection/Filters/Fields.php

<?php
/**
 * @package         Articles Anywhere
 * @version         13.0.2
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            http://regularlabs.com
 * @copyright       Copyright © 2022 Regular Labs All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

namespace RegularLabs\Plugin\System\ArticlesAnywhere\Collection\Filters;

defined('_JEXEC') or die;

use JDatabaseQuery;

class Fields extends Filter
{
    public function setFilter(JDatabaseQuery $query, $filters = [])
    {
        foreach ($filters as $key => $value)
        {
            $conditions = $this->getConditionsFromValues('items.' . $key, $value);

            $query->where($conditions);
        }
    }
}