public function __construct($name, $button_text, $plugin_js_url, $media_button_image = '', $print_button = false, $media_button_class = '')
 {
     parent::__construct($name, $button_text, $plugin_js_url, $media_button_image, $print_button);
     $this->view_id = isset($_GET['view_id']) ? $_GET['view_id'] : get_query_var('view_id');
     $this->media_button_class = $media_button_class;
     /*Data Store Call*/
     add_action('wp_ajax_set_' . $this->name, array($this, 'send_data_to_parametric_form'));
     add_action('wp_ajax_get_' . $this->name, array($this, 'get_data_from_parametric_form'));
     add_action('wp_ajax_create_parametric_dialog', array($this, 'create_parametric_dialog'));
     add_action('admin_head', array($this, 'init'));
 }
 public function __construct($name, $button_text, $plugin_js_url, $media_button_image = '', $print_button = true, $icon_class = '')
 {
     parent::__construct($name, $button_text, $plugin_js_url, $media_button_image, $print_button, $icon_class);
     if ($print_button && ($media_button_image != '' || $icon_class != '')) {
         global $wp_version;
         if (version_compare($wp_version, '3.1.4', '>')) {
             add_action('media_buttons', array($this, 'add_fields_views_button'), 10, 2);
         } else {
             add_action('media_buttons_context', array($this, 'add_fields_views_button'), 10, 2);
         }
     }
 }
 public function __construct($name, $button_text, $plugin_js_url, $media_button_image = '', $print_button = true, $icon_class = '')
 {
     parent::__construct($name, $button_text, $plugin_js_url, $media_button_image, $print_button, $icon_class);
     if ($print_button && ($media_button_image != '' || $icon_class != '')) {
         global $wp_version;
         if (version_compare($wp_version, '3.1.4', '>')) {
             add_action('media_buttons', array($this, 'add_fields_views_button'), 10, 2);
         } else {
             add_action('media_buttons_context', array($this, 'add_fields_views_button'), 10, 2);
         }
     }
     add_action('admin_footer', array($this, 'print_footer_dialogs'));
     if (apply_filters('wpv_render_dialogs_on_frontend', false)) {
         add_action('wp_footer', array($this, 'print_footer_dialogs'));
     }
 }
		public function __construct( $name, $button_text, $plugin_js_url, $media_button_image = '', $print_button = false, $media_button_class = '' ) {
			parent::__construct( $name, $button_text, $plugin_js_url, $media_button_image, $print_button );

			$this->view_id = isset( $_GET['view_id'] ) ? $_GET['view_id'] : get_query_var( 'view_id' );
			$this->media_button_class = $media_button_class;

			/*Data Store Call*/
			add_action( 'wp_ajax_set_' . $this->name, array( $this, 'send_data_to_parametric_form' ) );
			add_action( 'wp_ajax_get_' . $this->name, array( $this, 'get_data_from_parametric_form' ) );
			add_action( 'wp_ajax_create_parametric_dialog', array( $this, 'create_parametric_dialog' ) );
			add_action( 'wp_ajax_validate_post_relationship_tree', array( $this, 'validate_post_relationship_tree' ) );
			add_action( 'admin_init', array( $this, 'register_assets' ) );
			add_action( 'admin_enqueue_scripts', array( $this, 'parametric_enqueue_scripts' ) );
			add_action( 'admin_head', array( $this, 'admin_head' ) );
			add_action( 'wp_ajax_wpv_suggest_auto_fill_default', array( $this, 'wpv_suggest_auto_fill_default' ) );
			add_action( 'wp_ajax_nopriv_wpv_suggest_auto_fill_default', array( $this, 'wpv_suggest_auto_fill_default' ) );
		}