1 | <?php |
||
16 | class Term_Relationships extends Module { |
||
17 | /** |
||
18 | * Sync module name. |
||
19 | * |
||
20 | * @access public |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | public function name() { |
||
27 | |||
28 | /** |
||
29 | * Initialize term relationships action listeners for full sync. |
||
30 | * |
||
31 | * @access public |
||
32 | * |
||
33 | * @param callable $callable Action handler callable. |
||
34 | */ |
||
35 | public function init_full_sync_listeners( $callable ) { |
||
38 | |||
39 | /** |
||
40 | * Initialize the module in the sender. |
||
41 | * |
||
42 | * @access public |
||
43 | */ |
||
44 | public function init_before_send() { |
||
48 | |||
49 | /** |
||
50 | * Enqueue the term relationships actions for full sync. |
||
51 | * |
||
52 | * @access public |
||
53 | * |
||
54 | * @param array $config Full sync configuration for this sync module. |
||
55 | * @param int $max_items_to_enqueue Maximum number of items to enqueue. |
||
56 | * @param boolean $state True if full sync has finished enqueueing this module, false otherwise. |
||
57 | * @return array Number of actions enqueued, and next module state. |
||
58 | */ |
||
59 | public function enqueue_full_sync_actions( $config, $max_items_to_enqueue, $state ) { |
||
70 | |||
71 | /** |
||
72 | * Retrieve an estimated number of actions that will be enqueued. |
||
73 | * |
||
74 | * @access public |
||
75 | * |
||
76 | * @param array $config Full sync configuration for this sync module. |
||
77 | * @return int Number of items yet to be enqueued. |
||
78 | */ |
||
79 | public function estimate_full_sync_actions( $config ) { |
||
89 | |||
90 | /** |
||
91 | * Retrieve the actions that will be sent for this module during a full sync. |
||
92 | * |
||
93 | * @access public |
||
94 | * |
||
95 | * @return array Full sync actions of this module. |
||
96 | */ |
||
97 | public function get_full_sync_actions() { |
||
100 | |||
101 | /** |
||
102 | * Expand the term relationships within a hook before they are serialized and sent to the server. |
||
103 | * |
||
104 | * @access public |
||
105 | * |
||
106 | * @param array $args The hook parameters. |
||
107 | * @return array $args The expanded hook parameters. |
||
108 | */ |
||
109 | public function expand_term_relationships( $args ) { |
||
117 | } |
||
118 |