Your IP : 216.73.216.209


Current Path : /home/megadansyp/www/plugins/system/articlesanywhere/src/Components/K2/Collection/
Upload File :
Current File : /home/megadansyp/www/plugins/system/articlesanywhere/src/Components/K2/Collection/Item.php

<?php
/**
 * @package         Articles Anywhere
 * @version         12.4.1
 * 
 * @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\Components\K2\Collection;

defined('_JEXEC') or die;

use RegularLabs\Plugin\System\ArticlesAnywhere\Collection\DB;

class Item extends \RegularLabs\Plugin\System\ArticlesAnywhere\Collection\Item
{
	public function getTags()
	{
		return [];
	}

	public function hit()
	{
		return;
	}

	public function getArticle()
	{
		$query = $this->db->getQuery(true)
			->select('*')
			->from($this->config->getTableItems())
			->where($this->db->quoteName('id') . ' = ' . (int) $this->getId());

		return DB::getResults($query, 'loadObject', [], 1);
	}
}