| 1 | <?php |
||
| 20 | class Standard |
||
| 21 | extends \Aimeos\Controller\Frontend\Base |
||
|
2 ignored issues
–
show
|
|||
| 22 | implements Iface, \Aimeos\Controller\Frontend\Common\Iface |
||
|
1 ignored issue
–
show
|
|||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Returns the given search filter with the conditions attached for filtering by product code |
||
| 26 | * |
||
| 27 | * @param \Aimeos\MW\Criteria\Iface $filter Criteria object used for stock search |
||
| 28 | * @param array $codes List of product codes |
||
| 29 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
||
| 30 | * @since 2017.03 |
||
| 31 | */ |
||
| 32 | public function addFilterCodes( \Aimeos\MW\Criteria\Iface $filter, array $codes ) |
||
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns the given search filter with the conditions attached for filtering by type code |
||
| 46 | * |
||
| 47 | * @param \Aimeos\MW\Criteria\Iface $filter Criteria object used for stock search |
||
| 48 | * @param array $codes List of stock type codes |
||
| 49 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
||
| 50 | * @since 2017.03 |
||
| 51 | */ |
||
| 52 | public function addFilterTypes( \Aimeos\MW\Criteria\Iface $filter, array $codes ) |
||
| 65 | |||
| 66 | |||
| 67 | /** |
||
| 68 | * Returns the default stock filter |
||
| 69 | * |
||
| 70 | * @param boolean True to add default criteria |
||
| 71 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
||
| 72 | * @since 2017.03 |
||
| 73 | */ |
||
| 74 | public function createFilter() |
||
| 78 | |||
| 79 | |||
| 80 | /** |
||
| 81 | * Returns the stock item for the given stock ID |
||
| 82 | * |
||
| 83 | * @param string $id Unique stock ID |
||
| 84 | * @param string[] $domains Domain names of items that are associated with the stocks and that should be fetched too |
||
| 85 | * @return \Aimeos\MShop\Stock\Item\Iface Stock item including the referenced domains items |
||
| 86 | * @since 2017.03 |
||
| 87 | */ |
||
| 88 | public function getItem( $id ) |
||
| 92 | |||
| 93 | |||
| 94 | /** |
||
| 95 | * Returns the stocks filtered by the given criteria object |
||
| 96 | * |
||
| 97 | * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions |
||
| 98 | * @param integer &$total Parameter where the total number of found stocks will be stored in |
||
| 99 | * @return array Ordered list of stock items implementing \Aimeos\MShop\Stock\Item\Iface |
||
| 100 | * @since 2017.03 |
||
| 101 | */ |
||
| 102 | public function searchItems( \Aimeos\MW\Criteria\Iface $filter, &$total = null ) |
||
| 106 | } |
||
| 107 |