Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ManyImageRelationTask extends BuildTask |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $title = 'Product Image Relation Update Task'; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private static $segment = 'product-image-relation-update-task'; |
||
|
|||
23 | |||
24 | /** |
||
25 | * @param \SilverStripe\Control\HTTPRequest $request |
||
26 | */ |
||
27 | public function run($request) |
||
28 | { |
||
29 | $this->updateRelationTable(); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * |
||
34 | */ |
||
35 | protected function updateRelationTable() |
||
41 | ); |
||
42 | } |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return \Generator |
||
47 | */ |
||
48 | protected function yieldProductImages() |
||
52 | } |
||
53 | } |
||
55 |