PHP code example of fond-of-oryx / erp-order-page-search
1. Go to this page and download the library: Download fond-of-oryx/erp-order-page-search library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fond-of-oryx / erp-order-page-search example snippets
namespace Pyz\Client\ErpOrderPageSearch;
use FondOfOryx\Client\ErpOrderPageSearch\ErpOrderPageSearchDependencyProvider as FooErpOrderPageSearchDependencyProvider;
use FondOfOryx\Client\ErpOrderPageSearch\Plugin\SearchExtension\ErpOrderPageSearchOwnParamFilterQueryExpanderPlugin;
use FondOfOryx\Client\ErpOrderPageSearch\Plugin\SearchExtension\RawErpOrderPageSearchResultFormatterPlugin;
class ErpOrderPageSearchDependencyProvider extends FooErpOrderPageSearchDependencyProvider
{
/**
* @return \Spryker\Client\Search\Dependency\Plugin\QueryExpanderPluginInterface[]
*/
protected function getQueryExpanderPlugins(): array
{
$queryExpanderPlugins = parent::getQueryExpanderPlugins();
$queryExpanderPlugins[] = new ErpOrderPageSearchOwnParamFilterQueryExpanderPlugin();
return $queryExpanderPlugins;
}
/**
* @return \Spryker\Client\Search\Dependency\Plugin\ResultFormatterPluginInterface[]
*/
protected function getResultFormatterPlugins(): array
{
$resultFormatterPlugins = parent::getResultFormatterPlugins();
$resultFormatterPlugins[] = new RawErpOrderPageSearchResultFormatterPlugin();
return $resultFormatterPlugins;
}
}