JEMBOT MAWOT Bypass Shell
<?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 PrestaShopBundle\Service\DataProvider\Admin;
/**
* @deprecated since 8.1 and will be removed in next major.
*
* Data provider for new Architecture, about Product object model.
*
* This class will provide data from DB / ORM about Products for the Admin interface.
*/
interface ProductInterface
{
/**
* Will retrieve set of parameters from persistence, for product filters.
*
* @return string[] The old filter parameters values
*/
public function getPersistedFilterParameters();
/**
* Is there a specific category selected to filter product?
*
* @return bool true if a category is selected
*/
public function isCategoryFiltered();
/**
* Is there any column filter value?
*
* A filter with empty string '' is considered as not filtering, but 0 or '0' is a filter value!
*
* @return bool True if at least one column is filtered (except categories)
*/
public function isColumnFiltered();
/**
* Will persist set of parameters for product filters.
*
* @param string[] $parameters
*/
public function persistFilterParameters(array $parameters);
/**
* Combines new filter values with old ones (persisted), then persists the combination and returns it.
*
* @param string[]|null $paramsIn New filter params values to take into account. If not given, the method will simply return persisted values.
* @param bool $avoidPersistence true to avoid persisting these preferences (for an export for example)
*
* @return string[] The new filter params values
*/
public function combinePersistentCatalogProductFilter($paramsIn = [], $avoidPersistence = false);
/**
* Returns a collection of products, using default language, currency and others, from Context.
*
* @param int|string $offset an offset, or the 'last' token
* @param int|string $limit a limit, or the 'last' token
* @param string $orderBy Field name to sort during SQL query
* @param string $sortOrder 'asc' or 'desc'
* @param string[] $post filter params values to take into acount (often comes from POST data)
* @param bool $avoidPersistence True to avoid persisting these preferences (for an export for example)
* @param bool $formatCldr False to avoid CLDR formatting (heavy memory usage)
*
* @return array[mixed[]] A list of products, as an array of arrays of raw data
*/
public function getCatalogProductList($offset, $limit, $orderBy, $sortOrder, $post = [], $avoidPersistence = false, $formatCldr = true);
/**
* Retrieve global product count (for the current shop).
*
* No filtering/limit/offset is applied to give this count.
*
* @return int The product count on the current shop
*/
public function countAllProducts();
/**
* Because pagination is tied to memory available on the server side, the choices can vary from one to another platform,
* depending on the memory_limit allocated to PHP.
* This will return Elements per page that are recommended to fetch products on the Admin catalog page.
*
* @return array[int] A list of pagination limits to show in the select dropbox in paginator component
*/
public function getPaginationLimitChoices();
/**
* Returns the last SQL query that was compiled on this Provider.
*
* @return string The last SQL query that was compiled with $this->compileSqlQuery()
*/
public function getLastCompiledSql();
/**
* Returns default activation state for new product.
*
* Duplication process could be different since duplicated product is always deactivated after duplication.
*
* @return bool true if a newly created product should be activated by default
*/
public function isNewProductDefaultActivated();
}
xxxxx1.0, XXX xxxx