1 | <?php |
||
18 | class Extractor |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Translation UI model class instance |
||
23 | * @var \gplcart\core\models\Translation $translation |
||
24 | */ |
||
25 | protected $translation; |
||
26 | |||
27 | /** |
||
28 | * Extractor model instance |
||
29 | * @var \gplcart\modules\extractor\models\Extractor $extractor |
||
30 | */ |
||
31 | protected $extractor; |
||
32 | |||
33 | /** |
||
34 | * @param ExtractorModel $extractor |
||
35 | * @param Translation $translation |
||
36 | */ |
||
37 | public function __construct(ExtractorModel $extractor, Translation $translation) |
||
42 | |||
43 | /** |
||
44 | * Processes one extraction job iteration |
||
45 | * @param array $job |
||
46 | * @return array |
||
47 | */ |
||
48 | public function process(array &$job) |
||
76 | |||
77 | /** |
||
78 | * Check if the string already exists in the file |
||
79 | * @param string $string |
||
80 | * @param array $job |
||
81 | * @return boolean |
||
82 | */ |
||
83 | protected function exists($string, array $job) |
||
107 | |||
108 | } |
||
109 |