Sets $_POST

@param *mixed $data
@param mixed  ...$args

@return StageTrait
167973
public function setStage($data, ...$args)
    {
        if (is_array($data)) {
            //one dimenstions soft setter
            foreach ($data as $key => $value) {
                $this->set('stage', $key, $value);
            }

            return $this;
        }

        if (count($args) === 0) {
            return $this;
        }

        return $this->set('stage', $data, ...$args);
    }
710519
public function set( $args = array(), $assoc_args = array() ) {
		list( $mod, $value ) = $args;

		set_theme_mod( $mod, $value );

		if ( get_theme_mod( $mod ) === $value ) {
			WP_CLI::success( "Theme mod {$mod} set to {$value}." );
		} else {
			WP_CLI::success( "Could not update theme mod {$mod}." );
		}
	}
1048793
public static function set_meta_data($data)
    {
        if (is_array($data)) {
            foreach ($data as $key => $value) {
                self::$meta_data[strtolower($key)] = $value;
            }
        } else {
            user_error("set_meta_data must be passed an array", E_USER_ERROR);
        }
    }
423780
public function setData(array $data)
    {
        foreach ($data as $prop => $val) {
            $func = [$this, $this->setter($prop)];
            if (is_callable($func)) {
                call_user_func($func, $val);
            } else {
                $this->{$prop} = $val;
            }
        }

        return $this;
    }
1357028
public function status($status, array $args = []): PostTypeInterface
    {
        if (is_array($status)) {
            foreach ($status as $key => $params) {
                if (is_int($key)) {
                    $this->status($params);
                } elseif (is_string($key) && is_array($params)) {
                    $this->status($key, $params);
                }
            }

            return $this;
        }

        $this->prepareStatus($status, $args);

        return $this;
    }
246773
protected function setRequestData(array $data = [])
    {
        if (($this->post instanceof Collection) && (!$this->post->isEmpty())) {
            unset($this->post);
        }

        $this->post = new Collection($data);

        return $this->post;
    }
1211731
public function setData ($arg1, $arg2 = null)
		{
			if (is_array($arg1) || is_object($arg1)) {
				$this->viewData = array_merge($this->viewData, (array)$arg1);
			} else {
				$this->viewData[$arg1] = $arg2;
			}

			return $this;
		}
302032
public function upload($args)
    {
      $args = Ensure::Input($args);
      $data = $args->get();

      $url = URIResource::Make($this->path, array($data["mediaName"]));

      if (isset($data['file'])) {
        $file = FileHandler::Read($data['file']);
      } else {
        $file = $this->data;
      }
      
      $this->client->put($url, $file);

      return Constructor::Make($this, array_merge(array("url" => $this->client->join($url)), $data));
    }
279165
public static function post($urls, $data = null, callable $callback = null)
    {
        return static::make('post', $urls, $data, $callback);
    }
1125018
public function post($data)
    {
        $args = func_get_args();
        if(count($args) == 1) {
            $args = null;
        } else {
            $data = array_pop($args);
        }

        $response = '';

        try {
            $response = $this->client->request($this, 'post', $args, $data);
            return $response['data'];
        } catch (Exception $ex) {
            $this->dispatchException($ex);
        }

    }
528932
private function setData($data) {

		if(false === is_array($data)) {
   			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type array, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
   		}

		$this -> data = $data;
	}
771816
public function beforeInsert(&$args) {
        $model = &$args[0];
        $data  = &$args[1];
        $this->validate($data, $model);
    }
273662
public function setData($data)
    {
        if ( ! (is_array($data) || $data instanceof Traversable)) {
            throw new InvalidArgumentException(
                sprintf(
                    '%s expects an array or Traversable collection; invalid collection of type %s provided',
                    __METHOD__,
                    is_object($data) ? get_class($data) : gettype($data)
                )
            );
        }

        // https://github.com/zendframework/zend-inputfilter/pull/169
        $this->collectionRawValues = $data;

        foreach ($data as $item) {
            if (is_array($item) || $item instanceof Traversable) {
                continue;
            }

            throw new InvalidArgumentException(
                sprintf(
                    '%s expects each item in a collection to be an array or Traversable; '
                    . 'invalid item in collection of type %s detected',
                    __METHOD__,
                    is_object($item) ? get_class($item) : gettype($item)
                )
            );
        }

        $this->data = $data;
        return $this;
    }
955779
protected function set_pagination_args(array $args)
    {
        $args = wp_parse_args($args, array(
            'total_items' => 0,
            'total_pages' => 0,
            'per_page'    => 0
        ));

        if (!$args['total_pages'] && $args['per_page'] > 0) {
            $args['total_pages'] = ceil($args['total_items'] / $args['per_page']);
        }

        // Redirect if page number is invalid and headers are not already sent
        if (!headers_sent() && (!defined('DOING_AJAX') || !DOING_AJAX) && $args['total_pages'] > 0 && $this->get_pagenum() > $args['total_pages']) {
            wp_redirect(add_query_arg('paged', $args['total_pages']));
            exit;
        }

        $this->pagination_args = $args;
    }
914242
public function send($args)
    {
      $data = Ensure::Input($args);
      $url = URIResource::Make($this->path);

      if ($data->has("media")) {
         $data->add("media", (string) new MediaURL($data->val("media", $this)));   
      }
          
      $message_id = Locator::Find($this->client->post($url, $data->get()));
      $data->add("id", $message_id);

      return Constructor::Make($this, $data->get(), array("messageId" => "id"));
    }
857709
public function setSoftStage(array $data)
    {
        //one dimenstions soft setter
        foreach ($data as $key => $value) {
            if ($this->exists('stage', $key)) {
                continue;
            }

            $this->set('stage', $key, $value);
        }

        return $this;
    }
714477
public function setData($data = [])
    {
        $this->data = $data;
        $this->debug->info(__FUNCTION__, 'setData: ', $this->data);

        return $this;
    }