ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
@@ -0,0 +1,40 @@
<?php
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_GeoIPLookup
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
namespace Plumrocket\GeoIPLookup\Api;
interface GeoIPLookupInterface
{
/**
* Returns GeoIpData with possibility to choose services and their priority
*
* @param string $ip
* @param string $params comma separated list of services to use, e.g. 'ipapi,maxmind,iptocountry'
* @api
* @return string|array
*/
public function getGeoIpData($ip, $params = '');
/**
* Returns GeoIpData
*
* @param string $ip
* @api
* @return string|array
*/
public function getGeoIpDataWithDefaultServices($ip);
}
@@ -0,0 +1,32 @@
<?php
/**
* @package Plumrocket_GeoIPLookup
* @copyright Copyright (c) 2024 Plumrocket Inc. (https://plumrocket.com)
* @license https://plumrocket.com/license/ End-user License Agreement
*/
namespace Plumrocket\GeoIPLookup\Api;
/**
* @since 2.0.0
*/
interface GeoIpServiceInterface
{
/**
* @param string|null $ip
* @return array|null
*/
public function getGeoLocation(?string $ip): ?array;
/**
* @param string|null $ip
* @return string|null
*/
public function getCountryCode(?string $ip): ?string;
/**
* @param string|null $ip
* @return string|null
*/
public function getCurrentCountryState(?string $ip): ?string;
}
@@ -0,0 +1,43 @@
<?php
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_GeoIPLookup
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
namespace Plumrocket\GeoIPLookup\Api;
/**
* @since 1.2.0
*/
interface GeoLocationValidatorInterface
{
/**
* @param array $regions
* @param array $counties
* @param array $usaStates
* @param string|null $ip
* @return bool
* @throws \Magento\Framework\Exception\LocalizedException if extension isn't ready to look up
*/
public function validate(array $regions, array $counties, array $usaStates = [], ?string $ip = null): bool;
/**
* @param array $options regions and countries
* @param array $usaStates
* @param string|null $ip
* @return bool
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function validateByMergedOptions(array $options, array $usaStates = [], ?string $ip = null): bool;
}
@@ -0,0 +1,65 @@
<?php
/**
* Plumrocket Inc.
*
* NOTICE OF LICENSE
*
* This source file is subject to the End-user License Agreement
* that is available through the world-wide-web at this URL:
* http://wiki.plumrocket.net/wiki/EULA
* If you are unable to obtain it through the world-wide-web, please
* send an email to support@plumrocket.com so we can send you a copy immediately.
*
* @package Plumrocket_GeoIPLookup
* @copyright Copyright (c) 2020 Plumrocket Inc. (http://www.plumrocket.com)
* @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
*/
namespace Plumrocket\GeoIPLookup\Api;
/**
* @since 1.2.0
*/
interface LocationsListInterface
{
/**
* All site visitors
*/
public const ALL = 'all';
/**
* Only visitors from EU countries
*/
public const EU = 'eu';
/**
* Only visitors from unrecognized locations
*/
public const UNKNOWN = 'unknown';
public const COUNTRY_CODE_USA = 'US';
public const USA_STATE_CALIFORNIA = 'California';
/**
* Return array of regions as value-label pairs
*
* @return array Format: array(array('value' => '<value>', 'label' => '<label>'), ...)
*/
public function getRegions(): array;
/**
* Return array of counties as value-label pairs
*
* @return array Format: array(array('value' => '<value>', 'label' => '<label>'), ...)
*/
public function getCountries(): array;
/**
* Return array of states as value-label pairs
*
* @param string $countryName
* @return array Format: array(array('value' => '<value>', 'label' => '<label>'), ...)
*/
public function getCountryStates(string $countryName): array;
}