| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/lyon/plugins/system/nrframework/NRFramework/Notices/ |
Upload File : |
<?php
/**
* @author Tassos Marinos <info@tassos.gr>
* @link https://www.tassos.gr
* @copyright Copyright © 2024 Tassos All Rights Reserved
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
* @credits https://github.com/codeigniter4/CodeIgniter4/blob/develop/app/Config/Mimes.php
*/
namespace NRFramework\Notices;
// No direct access
defined('_JEXEC') or die;
use \NRFramework\Extension;
class Helper
{
/**
* Returns the extension details for given element.
*
* @param array $data
* @param string $element
*
* @return array
*/
public static function getExtensionDetails($data, $element)
{
// Return bundle only if its active
if (isset($data['bundle']) && $data['bundle']['active'])
{
return $data['bundle'];
}
$alias = Extension::getExtensionDataFileAlias($element);
// If no license data found for this extension
if (!isset($data[$alias]))
{
// Return the expired bundle information if it exists
if (isset($data['bundle']))
{
return $data['bundle'];
}
// No bundle exists, return nothing
return;
}
// Return the extension's license data details
return $data[$alias];
}
}