/**
  * @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 $method_name
  * @param array $args
  *
  * @return mixed
  */
 function __call($method_name, $args = array())
 {
     /*
      * If method was the_*() method, parent __call() will fall through and return false.
      */
     if (!($result = parent::__call($method_name, $args))) {
         /*
          * Delegate call to view and return it's result to caller.
          */
         $result = $this->view->{$method_name}($args);
     }
     return $result;
 }
 /**
  * @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);
 }