download all files

This commit is contained in:
Roman Pyrih
2025-06-24 14:14:35 +02:00
parent ebed09c00b
commit 4c71b5d9c2
72007 changed files with 10407727 additions and 40029 deletions

View File

@@ -0,0 +1,47 @@
<?php
/**
* Since 2013 Ovidiu Cimpean.
*
* Ovidiu Cimpean - Newsletter Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at addons4prestashop@gmail.com.
*
* @author Ovidiu Cimpean <addons4prestashop@gmail.com>
* @copyright Since 2013 Ovidiu Cimpean
* @license Do not edit, modify or copy this file
*
* @version Release: 4
*/
namespace PQNP;
class Version
{
public static function isEqual($version)
{
return version_compare($version, _PS_VERSION_, '==');
}
public static function isLower($version)
{
return version_compare($version, _PS_VERSION_, '>');
}
public static function isHigher($version)
{
return !(self::isLower($version));
}
public static function compare($va, $vb, $sign)
{
return version_compare($va, $vb, $sign);
}
public static function isBetween($lower_version, $higher_version)
{
return !Version::isLower($lower_version) && Version::isLower($higher_version);
}
}