验证是否和某个字段的值一致
@access protected

@param string $as_name 字段名称
@param mixed  $value   字段值

@return $this
358144
public function confirm($as_name, $value) {
        $this->p2 = $as_name;
        $this->check_role = 'confirm';
        $result = $this->value == $value;
        $this->checkResult($result);
        return $this;
    }
379082
public function withHeader($name, $value)
    {
        $request = clone $this;
        $request->headers->set($name, $value);

        return $request;
    }
1279569
public function set($name, $value)
    {
        $configuration = $this->configuration->getParameter('configuration');
        $configuration[$name] = $value;
        $this
            ->configuration
            ->setParameter(
                'configuration',
                $configuration
            );

        return $this;
    }
825228
public function withAttribute($name, $value)
    {
        $attributes = $this->getAttributes();
        if (array_key_exists($name, $attributes) && $attributes[$name] === $value) {
            return $this;
        }

        $attributes[$name] = $value;

        $newInstance = clone $this;
        $newInstance->setAttributes($attributes);
        return $newInstance;
    }
158777
public function assign(string $name, $value): object
    {
        $this->data[$name] = $value;
        return $this;
    }
852729
public function setHeaders($name, $value = null)
	{
		//Verifying if is array
		if (is_array($name)) {
			foreach ($name as $k => $v) {
				if (is_string($k)) {
					$this->setHeaders($k, $v);
				} else {
					$this->setHeaders($v, null);
				}
			}
		} else {
			// Verifying if is a string without $value parameter
			if (is_null($value) && (strpos($name, ':') > 0)) {
				list($name, $value) = explode(':', $name, 2);
			}
			
			if (is_null($value) || $value === false) {
				unset($this->headers[$name]);
			} else {
				if (is_string($value)) {
					$value = trim($value);
				}
				$this->headers[$name] = $value;
			}
		}
		
		return $this;
	}
527350
final public function set($name, $value)
    {
        $method = 'set'.ucfirst($name);
        if(!method_exists($this, $method) ) {
            parent::set($name, $value);
        } else {
            $this->$method($value);
        }

        return $this;
    }
947972
public function setPost(string $name, $value) : self
    {
        $this->post[$name] = $value;

        return $this;
    }
334709
public function set_name($value) {
        $this->name = clean_param($value, PARAM_TEXT);
        $this->dirty = true;

        return $this;
    }
689502
public function data($name, $value = NULL)
	{
		if (func_num_args() === 1) {
			$this->attrs['data'] = $name;
		} else {
			$this->attrs["data-$name"] = is_bool($value) ? json_encode($value) : $value;
		}

		return $this;
	}
220768
public function set($name, $value)
  {
    if (is_null($value)) {
      unset($this->vars[$name]);
    } else {
      $this->vars[$name] = $value;
    }

    return $this;
  }
1246779
public function set($name, $value) {
		\Asgard\Common\ArrayUtils::set($this->metas, $name, $value);
		return $this;
	}
1282021
public function assign($name, $value = null)
    {
        if (is_array($name)) {
            $this->data = $name + $this->data;
        } else {
            $this->data[$name] = $value;
        }
        return $this;
    }
582282
public function withSetting(string $name, $value): self
    {
        $this->settings[$name] = $value;
        return $this;
    }
1220335
public function set($name, $value = '', $prefix = null) {
        $prefix = !is_null($prefix) ? $prefix : $this->prefix;
        if (strpos($name, '.')) {
            // 二维数组赋值
            list($name1, $name2) = explode('.', $name);
            if ($prefix) {
                $_SESSION[$prefix][$name1][$name2] = $value;
            }
            else {
                $_SESSION[$name1][$name2] = $value;
            }
        }
        elseif ($prefix) {
            $_SESSION[$prefix][$name] = $value;
        }
        else {
            $_SESSION[$name] = $value;
        }
    }
140371
public static function put( $name = '', $value = '' ) {

		if ( ! empty( $value ) ) {
			$GLOBALS['_PUT'][ $name ] = $value;
		}

		if ( empty( $name ) ) {
			return ( isset( $GLOBALS['_PUT'] ) ) ? $GLOBALS['_PUT'] : NULL;
		} else {
			return ( isset( $GLOBALS['_PUT'][ $name ] ) ) ? $GLOBALS['_PUT'][ $name ] : NULL;
		}

	}
560546
public static function set($name, $value = '')
    {
        empty(self::$init) && self::init();

        if (is_string($name)) {
            $_SESSION[$name] = $value;
        }

        if (is_array($name)) {
            foreach ($name as $item => $val) {
                $_SESSION[$item] = $val;
            }
        }
    }