Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function delete() |
||
28 | { |
||
29 | $result = $this->getClient()->delete(); |
||
30 | |||
31 | $ids = (array) $this->getView()->param( 'id' ); |
||
32 | $tags = array( 'product' ); |
||
33 | |||
34 | foreach( $ids as $id ) { |
||
35 | $tags[] = 'product-' . $id; |
||
36 | } |
||
37 | |||
38 | $this->getContext()->getCache()->deleteByTags( $tags ); |
||
39 | |||
40 | return $result; |
||
41 | } |
||
42 | |||
63 |