Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/administrator/components/com_falang/helpers/
Upload File :
Current File : /home/smartconb/www/armencom33/administrator/components/com_falang/helpers/extensionHelper.php

<?php
/**
 * @package     Falang for Joomla!
 * @author      Stéphane Bouey <stephane.bouey@faboba.com> - http://www.faboba.com
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * @copyright   Copyright (C) 2010-2023. Faboba.com All rights reserved.
 */

// No direct access to this file
use Joomla\CMS\Factory;

defined('_JEXEC') or die;

class  FalangExtensionHelper  {
	
	private static $imagePath;
	
	/**
	 * @return	true if the FaLang extension is correctly installed, configured and activated
	 */
	public static function isFalangActive() {
		$db = Factory::getDBO();
		if (!is_a($db,"JFalangDatabase")){
			return false;
		}
		return true;
	}
	
	/**
	 * The method cleans the internal image path in order to force a re-check
	 * of images.
	 * @return void
	 */
	public static function cleanImagePathCache() {
		self::$imagePath = null;
	}
	

}