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 getAttributeValue( string $attribute, mixed $default = null ): mixed | ||
| $attribute | string | |
| $default | mixed | |
public function getAttributeValue(string $attribute, mixed $default = null): mixed
{
return ArrayHelper::getValueByPath($this->requestData, $attribute, $default, $this->attributeDelimiter);
}
| public getRequestData( ): array |
public function getRequestData(): array
{
return $this->requestData;
}
| public hasAttribute( string $attribute ): boolean | ||
| $attribute | string | |
public function hasAttribute(string $attribute): bool
{
return ArrayHelper::pathExists($this->requestData, $attribute, true, $this->attributeDelimiter);
}
| public setRequestData( array $requestData ): void | ||
| $requestData | array | |
public function setRequestData(array $requestData): void
{
$this->requestData = $requestData;
}
Signup or Login in order to comment.