Source of file ShopSearchContext.php
Size: 0,806 Bytes - Last Modified: 2021-12-23T10:47:54+00:00
/var/www/docs.ssmods.com/process/src/code/admin/ShopSearchContext.php
1234567891011121314151617181920212223242526272829 | <?php /** * Search context for orders. * * @author Frank Mullenger <frankmullenger@gmail.com> * @copyright Copyright (c) 2011, Frank Mullenger * @package swipestripe * @subpackage admin */ class ShopSearchContext_Order extends SearchContext { public function getResults($searchParams, $sort = false, $limit = false) { $searchParams = array_filter((array)$searchParams, array($this,'clearEmptySearchFields')); // getQuery actually returns a DataList $query = $this->getQuery($searchParams, $sort, $limit); //Only orders which have been processed are displayed $query = $query->leftJoin( $table = 'Payment', $onPredicate = "\"Payment\".\"OrderID\" = \"Order\".\"ID\"", $tableAlias = 'Payment' ); $query = $query->where('"Payment"."ID" IS NOT NULL'); return $query; } } |