✏️ 正在编辑: ProductInterface.php
路径:
/home/bpioifn/www/pigmentse/src/PrestaShopBundle/Service/DataProvider/Admin/ProductInterface.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * 2007-2019 PrestaShop and Contributors * * 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.txt. * 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://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ namespace PrestaShopBundle\Service\DataProvider\Admin; /** * 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 = array(), $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 = array(), $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(); }
💾 保存文件
← 返回文件管理器