This repository has been archived by the owner on Nov 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Class body for a resolver of pending meta filters #56
- Loading branch information
Showing
3 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php # -*- coding: utf-8 -*- | ||
|
||
namespace W2M\Import\Module; | ||
|
||
use | ||
W2M\Import\Data; | ||
|
||
/** | ||
* Class PostponedMetaFilterResolver | ||
* | ||
* Reads postponed meta filter from the list and | ||
* tries to re-apply them at the end of the import-process. | ||
* | ||
* @package W2M\Import\Module | ||
*/ | ||
class PostponedMetaFilterResolver { | ||
|
||
/** | ||
* @var Data\ImportListeningMetaFilterList | ||
*/ | ||
private $meta_list; | ||
|
||
/** | ||
* @param Data\ImportListeningMetaFilterList $meta_filter_list | ||
*/ | ||
public function __construct( Data\ImportListeningMetaFilterList $meta_filter_list ) { | ||
|
||
$this->meta_list = $meta_filter_list; | ||
} | ||
|
||
/** | ||
* @wp-hook w2m_import_process_done | ||
*/ | ||
public function resolve_pending_meta_filter() { | ||
|
||
// Todo: Iterate over postponed meta filters and re-apply them | ||
} | ||
} |