/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter
NameSizeModeActions
Address/-0755rm
Admin/-0755rm
Assets/-0755rm
Attachment/-0755rm
Attribute/-0755rm
AttributeGroup/-0755rm
Backup/-0755rm
BestSales/-0755rm
Cache/-0755rm
Carrier/-0755rm
Cart/-0755rm
CartRule/-0755rm
CatalogPriceRule/-0755rm
Category/-0755rm
CMS/-0755rm
Configuration/-0755rm
Contact/-0755rm
Container/-0755rm
Converter/-0755rm
Country/-0755rm
CreditSlip/-0755rm
Currency/-0755rm
Customer/-0755rm
Debug/-0755rm
Domain/-0755rm
Email/-0755rm
Employee/-0755rm
EntityTranslation/-0755rm
Feature/-0755rm
File/-0755rm
Form/-0755rm
Geolocation/-0755rm
Grid/-0755rm
Group/-0755rm
Hook/-0755rm
Hosting/-0755rm
Image/-0755rm
Import/-0755rm
Invoice/-0755rm
Kpi/-0755rm
Language/-0755rm
Localization/-0755rm
Mail/-0755rm
MailTemplate/-0755rm
Manufacturer/-0755rm
Media/-0755rm
Meta/-0755rm
Module/-0755rm
NewProducts/-0755rm
Notification/-0755rm
Number/-0755rm
OptionalFeatures/-0755rm
Order/-0755rm
OrderMessage/-0755rm
OrderReturn/-0755rm
OrderReturnState/-0755rm
OrderState/-0755rm
Pack/-0755rm
PDF/-0755rm
Preferences/-0755rm
Presenter/-0755rm
PricesDrop/-0755rm
Product/-0755rm
Profile/-0755rm
Requirement/-0755rm
Routes/-0755rm
Routing/-0755rm
Search/-0755rm
SearchEngine/-0755rm
Security/-0755rm
Session/-0755rm
Shop/-0755rm
Smarty/-0755rm
SpecificPrice/-0755rm
SqlManager/-0755rm
State/-0755rm
Store/-0755rm
Supplier/-0755rm
Support/-0755rm
System/-0755rm
Tab/-0755rm
Tax/-0755rm
TaxRulesGroup/-0755rm
Theme/-0755rm
Title/-0755rm
Translations/-0755rm
Twig/-0755rm
Upload/-0755rm
Warehouse/-0755rm
Webservice/-0755rm
Zone/-0755rm
AbstractObjectModelValidator.php37190644editdlrm
AddressFactory.php20510644editdlrm
CacheManager.php14500644editdlrm
ClassLang.php17160644editdlrm
CombinationDataProvider.php85800644editdlrm
Configuration.php139590644editdlrm
ContainerBuilder.php89660644editdlrm
ContainerFinder.php23980644editdlrm
ContextStateManager.php103360644editdlrm
CoreException.php12290644editdlrm
Database.php26980644editdlrm
EntityMapper.php55730644editdlrm
EntityMetaDataRetriever.php20340644editdlrm
Environment.php26700644editdlrm
GeneralConfiguration.php43310644editdlrm
HookManager.php39690644editdlrm
ImageManager.php43200644editdlrm
LegacyContext.php110080644editdlrm
LegacyContextLoader.php42620644editdlrm
LegacyHookSubscriber.php47800644editdlrm
LegacyLogger.php48980644editdlrm
ObjectPresenter.php13270644editdlrm
RoundingMapper.php25230644editdlrm
ServiceLocator.php20650644editdlrm
StockManager.php79140644editdlrm
SymfonyContainer.php19700644editdlrm
Tools.php59320644editdlrm
Validate.php38330644editdlrm
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Adapter/Tools.php (5932B)
* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Adapter; use PrestaShop\PrestaShop\Adapter\File\HtaccessFileGenerator; use Tools as LegacyTools; /** * This adapter will complete the new architecture Tools. * * Please put only wrappers and equivalents from Legacy \Tools class. * (only for this purpose, this is not here to put new utils functions). */ class Tools { /** * Return the friendly url from the provided string. * * @param string $str * * @return string */ public function linkRewrite($str) { return LegacyTools::str2url($str); } /** * @param string $html * @param string|null $uri_unescape * @param bool $allow_style * * @return string */ public function purifyHTML($html, $uri_unescape = null, $allow_style = false) { return LegacyTools::purifyHTML($html, $uri_unescape, $allow_style); } /** * @see LegacyTools::refreshCACertFile() */ public function refreshCaCertFile() { LegacyTools::refreshCACertFile(); } /** * @see LegacyTools::generateHtaccess() * * @return bool */ public function generateHtaccess() { return LegacyTools::generateHtaccess(); } /** * @see HtaccessFileGenerator::generateFile() * * @return bool */ public function generateHtaccessWithMultiViews() { return LegacyTools::generateHtaccess( null, null, null, '', true ); } /** * @see HtaccessFileGenerator::generateFile() * * @return bool */ public function generateHtaccessWithoutMultiViews() { return LegacyTools::generateHtaccess( null, null, null, '', false ); } /** * returns the rounded value of $value to specified precision, according to your configuration;. * * @note : PHP 5.3.0 introduce a 3rd parameter mode in round function * * @param float $value * @param int $precision * * @return float */ public function round($value, $precision = 0, $round_mode = null) { return LegacyTools::ps_round($value, $precision, $round_mode); } /** * Return domain name according to configuration and depending on ssl activation. * * @param bool $http if true, return domain name with protocol * @param bool $entities if true, convert special chars to HTML entities * * @return string domain */ public function getShopDomainSsl($http = false, $entities = false) { return LegacyTools::getShopDomainSsl($http, $entities); } /** * Checks if apache mod exists for mod_rewrite or the server has HTTP_MOD_REWRITE enabled. * * @return bool */ public function isModRewriteActive() { return LegacyTools::modRewriteActive(); } /** * Copy content. * * @param string $source * @param string $destination * @param resource|null $streamContext * * @return bool|int */ public function copy($source, $destination, $streamContext = null) { return LegacyTools::copy($source, $destination, $streamContext); } /** * Sanitize a string. * * @param string $value * @param bool $allowHtml * * @return string */ public function sanitize($value, $allowHtml = false) { return LegacyTools::safeOutput($value, $allowHtml); } /** * Get a valid image URL to use from BackOffice. * * @param string $fileName image file name * @param bool $escapeHtmlEntities if true - escape html entities on file name argument * * @return string image URL */ public function getAdminImageUrl($fileName, $escapeHtmlEntities = false) { return LegacyTools::getAdminImageUrl($fileName, $escapeHtmlEntities); } /** * Delete unicode class from regular expression patterns. * * @deprecated Since 8.0.0 and will be removed in the next major. * * @param string $pattern * * @return string pattern */ public function cleanNonUnicodeSupport($pattern) { return LegacyTools::cleanNonUnicodeSupport($pattern); } /** * @see LegacyTools::displayDate() * * @return string * * @throws \PrestaShopException */ public function displayDate($date, $full = false) { return LegacyTools::displayDate($date, $full); } /** * @see LegacyTools::truncateString() * * @return bool|string */ public function truncateString($text, $length = 120, $options = []) { return LegacyTools::truncateString($text, $length, $options); } }