PHP Class Jetpack_Sync_Module, jetpack

Mostra file Open project: automattic/jetpack

Public Methods

Method Description
enqueue_full_sync_actions ( $config, $max_items_to_enqueue, $state )
estimate_full_sync_actions ( $config )
get_full_sync_actions ( )
get_object_by_id ( $object_type, $id )
get_objects_by_id ( $object_type, $ids )
init_before_send ( )
init_full_sync_listeners ( $callable )
init_listeners ( $callable ) override these to set up listeners and set/reset data/defaults
init_listeners_for_meta_type ( $meta_type, $callable )
init_meta_whitelist_handler ( $meta_type, $whitelist_handler )
name ( )
reset_data ( )
set_defaults ( )
unserialize_meta ( $meta )

Protected Methods

Method Description
count_actions ( $action_names, $actions_to_count )
enqueue_all_ids_as_action ( $action_name, $table_name, $id_field, $where_sql, $max_items_to_enqueue, $state )
get_check_sum ( $values )
get_metadata ( $ids, $meta_type, $meta_key_whitelist )
get_term_relationships ( $ids )
still_valid_checksum ( $sums_to_check, $name, $new_sum )

Method Details

count_actions() protected method

protected count_actions ( $action_names, $actions_to_count )

enqueue_all_ids_as_action() protected method

protected enqueue_all_ids_as_action ( $action_name, $table_name, $id_field, $where_sql, $max_items_to_enqueue, $state )

enqueue_full_sync_actions() public method

public enqueue_full_sync_actions ( $config, $max_items_to_enqueue, $state )

estimate_full_sync_actions() public method

public estimate_full_sync_actions ( $config )

get_check_sum() protected method

protected get_check_sum ( $values )

get_full_sync_actions() public method

get_metadata() protected method

protected get_metadata ( $ids, $meta_type, $meta_key_whitelist )

get_object_by_id() public method

public get_object_by_id ( $object_type, $id )

get_objects_by_id() public method

public get_objects_by_id ( $object_type, $ids )

get_term_relationships() protected method

protected get_term_relationships ( $ids )

init_before_send() public method

public init_before_send ( )

init_full_sync_listeners() public method

public init_full_sync_listeners ( $callable )

init_listeners() public method

override these to set up listeners and set/reset data/defaults
public init_listeners ( $callable )

init_listeners_for_meta_type() public method

public init_listeners_for_meta_type ( $meta_type, $callable )

init_meta_whitelist_handler() public method

public init_meta_whitelist_handler ( $meta_type, $whitelist_handler )

name() abstract public method

abstract public name ( )

reset_data() public method

public reset_data ( )

set_defaults() public method

public set_defaults ( )

still_valid_checksum() protected method

protected still_valid_checksum ( $sums_to_check, $name, $new_sum )

unserialize_meta() public method

public unserialize_meta ( $meta )