/**
  * @param string $view_name
  * @param array $view_args
  */
 function __construct($view_name, $view_args = array())
 {
     $view_args['view_name'] = $view_name;
     if (!empty($view_args['field'])) {
         /*
          * Set $this->field before parent::__construct() because other initializes depend on it.
          */
         $this->field = $view_args['field'];
         $this->field->view = $this;
     }
     $this->features = array_fill_keys($this->get_feature_types(), array());
     parent::__construct($view_args);
     if (!is_object($this->wrapper)) {
         $wrapper_attributes = WP_Metadata::extract_prefixed_args($view_args, 'wrapper');
         $wrapper_attributes['class'] = $this->wrapper_html_class() . (!empty($wrapper_attributes['class']) ? "{$wrapper_attributes['class']} " : '');
         $this->wrapper = WP_Metadata::get_html_element($this->wrapper_tag(), $wrapper_attributes);
     }
 }
 /**
  * @param string $form_name
  * @param string|WP_Object_Type $object_type
  * @param array $form_args
  */
 function __construct($form_name, $object_type, $form_args)
 {
     $form_args['form_name'] = $form_name;
     $form_args['object_type'] = new WP_Object_Type($object_type);
     parent::__construct($form_args);
 }
 /**
  * @param string $field_name
  * @param array $field_args
  */
 function __construct($field_name, $field_args = array())
 {
     $field_args['field_name'] = $field_name;
     parent::__construct($field_args);
 }
 /**
  * @param object|WP_Metadata_Base $owner
  * @param array $storage_args
  */
 function __construct($owner, $storage_args = array())
 {
     $this->owner = $owner;
     parent::__construct($storage_args);
 }
 /**
  * @param string $tag_name
  * @param array $attributes
  * @param null|callable|string $value
  */
 function __construct($tag_name, $attributes = array(), $value = null)
 {
     $this->reset_element($tag_name, $attributes, $value);
     parent::__construct($attributes);
 }
 /**
  * @param WP_Field_Base $field
  * @param array $feature_args
  */
 function __construct($field, $feature_args = array())
 {
     //$this->field =
     $feature_args['field'] = $field;
     parent::__construct($feature_args);
 }