Abstract Class Yiisoft\RequestModel\RequestModel
| Inheritance | Yiisoft\RequestModel\RequestModel |
|---|---|
| Implements | Yiisoft\RequestModel\RequestModelInterface |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $attributeDelimiter | string | Yiisoft\RequestModel\RequestModel |
Public Methods
Property Details
Method Details
| public mixed getAttributeValue ( string $attribute, mixed $default = null ) | ||
| $attribute | string | |
| $default | mixed | |
public function getAttributeValue(string $attribute, mixed $default = null): mixed
{
return ArrayHelper::getValueByPath($this->requestData, $attribute, $default, $this->attributeDelimiter);
}
| public array getRequestData ( ) |
public function getRequestData(): array
{
return $this->requestData;
}
| public boolean hasAttribute ( string $attribute ) | ||
| $attribute | string | |
public function hasAttribute(string $attribute): bool
{
return ArrayHelper::pathExists($this->requestData, $attribute, true, $this->attributeDelimiter);
}
| public void setRequestData ( array $requestData ) | ||
| $requestData | array | |
public function setRequestData(array $requestData): void
{
$this->requestData = $requestData;
}
Signup or Login in order to comment.