Your IP : 216.73.217.80


Current Path : /home/jlgagfroyt/www/plugins/system/articlesanywhere/src/PluginTags/
Upload File :
Current File : /home/jlgagfroyt/www/plugins/system/articlesanywhere/src/PluginTags/Ordering.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\PluginTags;

defined('_JEXEC') or die;

use JDatabaseDriver;
use Joomla\CMS\Factory as JFactory;
use RegularLabs\Library\ArrayHelper as RL_Array;
use RegularLabs\Library\RegEx as RL_RegEx;
use RegularLabs\Plugin\System\ArticlesAnywhere\Collection\Fields\CustomFields;
use RegularLabs\Plugin\System\ArticlesAnywhere\Config;
use RegularLabs\Plugin\System\ArticlesAnywhere\Params;

class Ordering
{
    /* @var Config */
    protected $config;

    /* @var JDatabaseDriver */
    private $db;

    public function __construct(Config $config, CustomFields $custom_fields)
    {
        $this->config        = $config;
        $this->db            = JFactory::getDbo();
        $this->custom_fields = $custom_fields->getAvailableFields();
    }

    public function get($attributes)
    {


        return false;
    }

    protected function getColumns()
    {
    }

    protected function getOrderings($orderings, $default_direction = 'ASC')
    {
    }

    protected function parse(&$ordering, &$joins, $ordering_direction = 'ASC')
    {
    }
}