/** * @param Mlp_Relationship_Control_Data $data * @param Mlp_Updatable $updater */ public function __construct(Mlp_Relationship_Control_Data $data, Mlp_Updatable $updater) { $this->post = $data->get_source_post(); $this->remote_site_id = $data->get_remote_site_id(); $this->remote_post_id = $data->get_remote_post_id(); $this->site_id = get_current_blog_id(); $this->data = $data; $this->updater = $updater; $this->search_input_id = "mlp_post_search_{$this->remote_site_id}"; }
/** * @param Mlp_Relationship_Control_Data $data * @param Mlp_Updatable $updater */ public function __construct(Mlp_Relationship_Control_Data $data, Mlp_Updatable $updater) { $this->post = $data->get_source_post(); $this->remote_blog_id = $data->get_remote_blog_id(); $this->remote_post_id = $data->get_remote_post_id(); $this->blog_id = get_current_blog_id(); $this->data = $data; $this->updater = $updater; $this->search_input_id = "mlp_post_search_{$this->remote_blog_id}"; add_action("admin_footer-" . $GLOBALS['hook_suffix'], array($this, 'print_jquery')); }