first commit
This commit is contained in:
12
Resources/Private/Php/ComposerLibraries/composer.json
Normal file
12
Resources/Private/Php/ComposerLibraries/composer.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "7.2"
|
||||
},
|
||||
"classmap-authoritative": true,
|
||||
"prepend-autoloader": false
|
||||
},
|
||||
"require": {
|
||||
"solarium/solarium": ">=6.0 <7.0"
|
||||
}
|
||||
}
|
417
Resources/Private/Php/ComposerLibraries/composer.lock
generated
Normal file
417
Resources/Private/Php/ComposerLibraries/composer.lock
generated
Normal file
@@ -0,0 +1,417 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "8c8944e29c97a909e2bdb2d6b69c552f",
|
||||
"packages": [
|
||||
{
|
||||
"name": "psr/event-dispatcher",
|
||||
"version": "1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/event-dispatcher.git",
|
||||
"reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0",
|
||||
"reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\EventDispatcher\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Standard interfaces for event handling.",
|
||||
"keywords": [
|
||||
"events",
|
||||
"psr",
|
||||
"psr-14"
|
||||
],
|
||||
"time": "2019-01-08T18:20:26+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-client",
|
||||
"version": "1.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-client.git",
|
||||
"reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
|
||||
"reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.0 || ^8.0",
|
||||
"psr/http-message": "^1.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Client\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for HTTP clients",
|
||||
"homepage": "https://github.com/php-fig/http-client",
|
||||
"keywords": [
|
||||
"http",
|
||||
"http-client",
|
||||
"psr",
|
||||
"psr-18"
|
||||
],
|
||||
"time": "2020-06-29T06:28:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-factory",
|
||||
"version": "1.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-factory.git",
|
||||
"reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
|
||||
"reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.0.0",
|
||||
"psr/http-message": "^1.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interfaces for PSR-7 HTTP message factories",
|
||||
"keywords": [
|
||||
"factory",
|
||||
"http",
|
||||
"message",
|
||||
"psr",
|
||||
"psr-17",
|
||||
"psr-7",
|
||||
"request",
|
||||
"response"
|
||||
],
|
||||
"time": "2019-04-30T12:38:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-message",
|
||||
"version": "1.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/http-message.git",
|
||||
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Psr\\Http\\Message\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"description": "Common interface for HTTP messages",
|
||||
"homepage": "https://github.com/php-fig/http-message",
|
||||
"keywords": [
|
||||
"http",
|
||||
"http-message",
|
||||
"psr",
|
||||
"psr-7",
|
||||
"request",
|
||||
"response"
|
||||
],
|
||||
"time": "2016-08-06T14:39:51+00:00"
|
||||
},
|
||||
{
|
||||
"name": "solarium/solarium",
|
||||
"version": "6.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/solariumphp/solarium.git",
|
||||
"reference": "efdbb4c3cad33fbb8ac971f45405f5c1856b506b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/solariumphp/solarium/zipball/efdbb4c3cad33fbb8ac971f45405f5c1856b506b",
|
||||
"reference": "efdbb4c3cad33fbb8ac971f45405f5c1856b506b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"php": "^7.2 || ^8.0",
|
||||
"psr/event-dispatcher": "^1.0",
|
||||
"psr/http-client": "^1.0",
|
||||
"psr/http-factory": "^1.0",
|
||||
"symfony/event-dispatcher-contracts": "^1.0 || ^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"escapestudios/symfony2-coding-standard": "^3.11",
|
||||
"guzzlehttp/guzzle": "^7.2",
|
||||
"nyholm/psr7": "^1.2",
|
||||
"php-http/guzzle7-adapter": "^0.1",
|
||||
"phpstan/extension-installer": "^1.0",
|
||||
"phpstan/phpstan": "^0.12",
|
||||
"phpstan/phpstan-phpunit": "^0.12",
|
||||
"phpunit/phpunit": "^8.5 || ^9.4",
|
||||
"roave/security-advisories": "dev-master",
|
||||
"symfony/event-dispatcher": "^4.3 || ^5.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Solarium\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "See GitHub contributors",
|
||||
"homepage": "https://github.com/solariumphp/solarium/contributors"
|
||||
}
|
||||
],
|
||||
"description": "PHP Solr client",
|
||||
"homepage": "http://www.solarium-project.org",
|
||||
"keywords": [
|
||||
"php",
|
||||
"search",
|
||||
"solr"
|
||||
],
|
||||
"time": "2020-11-05T17:28:49+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher",
|
||||
"version": "v3.3.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||
"reference": "67535f1e3fd662bdc68d7ba317c93eecd973617e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/67535f1e3fd662bdc68d7ba317c93eecd973617e",
|
||||
"reference": "67535f1e3fd662bdc68d7ba317c93eecd973617e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5.9"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/dependency-injection": "<3.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"psr/log": "~1.0",
|
||||
"symfony/config": "~2.8|~3.0",
|
||||
"symfony/dependency-injection": "~3.3",
|
||||
"symfony/expression-language": "~2.8|~3.0",
|
||||
"symfony/stopwatch": "~2.8|~3.0"
|
||||
},
|
||||
"suggest": {
|
||||
"symfony/dependency-injection": "",
|
||||
"symfony/http-kernel": ""
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.3-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Component\\EventDispatcher\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"/Tests/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Fabien Potencier",
|
||||
"email": "fabien@symfony.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony EventDispatcher Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2017-06-09T14:53:08+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher-contracts",
|
||||
"version": "v1.1.9",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
|
||||
"reference": "84e23fdcd2517bf37aecbd16967e83f0caee25a7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/84e23fdcd2517bf37aecbd16967e83f0caee25a7",
|
||||
"reference": "84e23fdcd2517bf37aecbd16967e83f0caee25a7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1.3"
|
||||
},
|
||||
"suggest": {
|
||||
"psr/event-dispatcher": "",
|
||||
"symfony/event-dispatcher-implementation": ""
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.1-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/contracts",
|
||||
"url": "https://github.com/symfony/contracts"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Contracts\\EventDispatcher\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Generic abstractions related to dispatching event",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"abstractions",
|
||||
"contracts",
|
||||
"decoupling",
|
||||
"interfaces",
|
||||
"interoperability",
|
||||
"standards"
|
||||
],
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-06T13:19:58+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": [],
|
||||
"platform-dev": [],
|
||||
"platform-overrides": {
|
||||
"php": "7.2"
|
||||
},
|
||||
"plugin-api-version": "1.1.0"
|
||||
}
|
BIN
Resources/Private/Php/strptime/license.pdf
Normal file
BIN
Resources/Private/Php/strptime/license.pdf
Normal file
Binary file not shown.
170
Resources/Private/Php/strptime/strptime.php
Normal file
170
Resources/Private/Php/strptime/strptime.php
Normal file
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
/*
|
||||
* This work of Lionel SAURON (http://sauron.lionel.free.fr:80) is licensed under the
|
||||
* Creative Commons Attribution 2.0 France License.
|
||||
*
|
||||
* To view a copy of this license, visit http://creativecommons.org/licenses/by/2.0/fr/
|
||||
* or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
|
||||
*/
|
||||
|
||||
if (!function_exists('strptime')) {
|
||||
|
||||
/**
|
||||
* Parse a time/date generated with strftime().
|
||||
*
|
||||
* This function is the same as the original one defined by PHP (Linux/Unix only),
|
||||
* but now you can use it on Windows too.
|
||||
* Limitation : Only this format can be parsed %S, %M, %H, %d, %m, %Y
|
||||
*
|
||||
* @author Lionel SAURON
|
||||
* @version 1.0
|
||||
* @public
|
||||
*
|
||||
* @param $sDate (string) The string to parse (e.g. returned from strftime()).
|
||||
* @param $sFormat (string) The format used in date (e.g. the same as used in strftime()).
|
||||
* @return (array) Returns an array with the <code>$sDate</code> parsed, or <code>false</code> on error.
|
||||
*/
|
||||
function strptime($sDate, $sFormat)
|
||||
{
|
||||
$aResult = array(
|
||||
'tm_sec' => 0,
|
||||
'tm_min' => 0,
|
||||
'tm_hour' => 0,
|
||||
'tm_mday' => 1,
|
||||
'tm_mon' => 0,
|
||||
'tm_year' => 0,
|
||||
'tm_wday' => 0,
|
||||
'tm_yday' => 0,
|
||||
'unparsed' => $sDate,
|
||||
);
|
||||
|
||||
while ($sFormat != "") {
|
||||
// ===== Search a %x element, Check the static string before the %x =====
|
||||
$nIdxFound = strpos($sFormat, '%');
|
||||
if ($nIdxFound === false) {
|
||||
|
||||
// There is no more format. Check the last static string.
|
||||
$aResult['unparsed'] = ($sFormat == $sDate) ? "" : $sDate;
|
||||
break;
|
||||
}
|
||||
|
||||
$sFormatBefore = substr($sFormat, 0, $nIdxFound);
|
||||
$sDateBefore = substr($sDate, 0, $nIdxFound);
|
||||
|
||||
if ($sFormatBefore != $sDateBefore) {
|
||||
break;
|
||||
}
|
||||
|
||||
// ===== Read the value of the %x found =====
|
||||
$sFormat = substr($sFormat, $nIdxFound);
|
||||
$sDate = substr($sDate, $nIdxFound);
|
||||
|
||||
$aResult['unparsed'] = $sDate;
|
||||
|
||||
$sFormatCurrent = substr($sFormat, 0, 2);
|
||||
$sFormatAfter = substr($sFormat, 2);
|
||||
|
||||
$nValue = -1;
|
||||
$sDateAfter = "";
|
||||
|
||||
switch ($sFormatCurrent) {
|
||||
case '%S': // Seconds after the minute (0-59)
|
||||
|
||||
sscanf($sDate, "%2d%[^\\n]", $nValue, $sDateAfter);
|
||||
|
||||
if (($nValue < 0) || ($nValue > 59)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$aResult['tm_sec'] = $nValue;
|
||||
break;
|
||||
|
||||
// ----------
|
||||
case '%M': // Minutes after the hour (0-59)
|
||||
sscanf($sDate, "%2d%[^\\n]", $nValue, $sDateAfter);
|
||||
|
||||
if (($nValue < 0) || ($nValue > 59)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$aResult['tm_min'] = $nValue;
|
||||
break;
|
||||
|
||||
// ----------
|
||||
case '%H': // Hour since midnight (0-23)
|
||||
sscanf($sDate, "%2d%[^\\n]", $nValue, $sDateAfter);
|
||||
|
||||
if (($nValue < 0) || ($nValue > 23)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$aResult['tm_hour'] = $nValue;
|
||||
break;
|
||||
|
||||
// ----------
|
||||
case '%d': // Day of the month (1-31)
|
||||
sscanf($sDate, "%2d%[^\\n]", $nValue, $sDateAfter);
|
||||
|
||||
if (($nValue < 1) || ($nValue > 31)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$aResult['tm_mday'] = $nValue;
|
||||
break;
|
||||
|
||||
// ----------
|
||||
case '%m': // Months since January (0-11)
|
||||
sscanf($sDate, "%2d%[^\\n]", $nValue, $sDateAfter);
|
||||
|
||||
if (($nValue < 1) || ($nValue > 12)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$aResult['tm_mon'] = ($nValue - 1);
|
||||
break;
|
||||
|
||||
// ----------
|
||||
case '%Y': // Years since 1900
|
||||
sscanf($sDate, "%4d%[^\\n]", $nValue, $sDateAfter);
|
||||
|
||||
if ($nValue < 1900) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$aResult['tm_year'] = ($nValue - 1900);
|
||||
break;
|
||||
|
||||
// ----------
|
||||
default:
|
||||
break 2; // Break Switch and while
|
||||
|
||||
} // END of case format
|
||||
|
||||
// ===== Next please =====
|
||||
$sFormat = $sFormatAfter;
|
||||
$sDate = $sDateAfter;
|
||||
|
||||
$aResult['unparsed'] = $sDate;
|
||||
} // END of while($sFormat != "")
|
||||
|
||||
// ===== Create the other value of the result array =====
|
||||
$nParsedDateTimestamp = mktime($aResult['tm_hour'], $aResult['tm_min'],
|
||||
$aResult['tm_sec'],
|
||||
$aResult['tm_mon'] + 1, $aResult['tm_mday'],
|
||||
$aResult['tm_year'] + 1900);
|
||||
|
||||
// Before PHP 5.1 return -1 when error
|
||||
if (($nParsedDateTimestamp === false)
|
||||
|| ($nParsedDateTimestamp === -1)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$aResult['tm_wday'] = (int)strftime("%w",
|
||||
$nParsedDateTimestamp); // Days since Sunday (0-6)
|
||||
$aResult['tm_yday'] = (strftime("%j",
|
||||
$nParsedDateTimestamp) - 1); // Days since January 1 (0-365)
|
||||
|
||||
return $aResult;
|
||||
} // END of function
|
||||
}
|
Reference in New Issue
Block a user