Attachments.php
1 week ago
Attributes.php
1 week ago
DownloadableFiles.php
1 week ago
Linked.php
1 week ago
Meta.php
1 week ago
Post.php
1 week ago
Stock.php
1 week ago
Synchronizer.php
1 week ago
SynchronizerForMeta.php
1 week ago
Taxonomies.php
1 week ago
VariationAttachments.php
1 week ago
VariationMeta.php
1 week ago
VariationTaxonomies.php
1 week ago
Variations.php
1 week ago
Synchronizer.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Synchronization\Component; |
| 4 | |
| 5 | use WCML\Utilities\SyncHash; |
| 6 | |
| 7 | abstract class Synchronizer { |
| 8 | |
| 9 | protected $woocommerceWpml; |
| 10 | |
| 11 | protected $sitepress; |
| 12 | |
| 13 | protected $elementTranslations; |
| 14 | |
| 15 | protected $wpdb; |
| 16 | |
| 17 | protected $syncHashManager; |
| 18 | |
| 19 | public function __construct( |
| 20 | \woocommerce_wpml $woocommerceWpml, |
| 21 | \SitePress $sitepress, |
| 22 | \WPML_Element_Translation $elementTranslations, |
| 23 | \wpdb $wpdb, |
| 24 | SyncHash $syncHashManager |
| 25 | ) { |
| 26 | $this->woocommerceWpml = $woocommerceWpml; |
| 27 | $this->sitepress = $sitepress; |
| 28 | $this->elementTranslations = $elementTranslations; |
| 29 | $this->wpdb = $wpdb; |
| 30 | $this->syncHashManager = $syncHashManager; |
| 31 | } |
| 32 | |
| 33 | abstract public function run( $product, $translationsIds, $translationsLanguages ); |
| 34 | |
| 35 | } |
| 36 | |
| 37 |