\Hubleto\Framework\Description\Input
Implements | `JsonSerializable` |
Properties
type
protected string $type
title
protected string $title
readonly
protected bool $readonly
required
protected bool $required
placeholder
protected string $placeholder
decimals
protected int $decimals
unit
protected string $unit
format
protected string $format
description
protected string $description
reactComponent
protected string $reactComponent
lookupModel
protected string $lookupModel
inputProps
protected array $inputProps
examples
protected array $examples
enumValues
protected array $enumValues
enumCssClasses
protected array $enumCssClasses
predefinedValues
protected array $predefinedValues
defaultValue
protected mixed $defaultValue
cssClass
protected string $cssClass
endpoint
protected string $endpoint
creatable
protected bool $creatable
properties
protected array $properties
Methods
getProperty
public getProperty(string $pName): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$pName |
string |
setProperty
public setProperty(string $pName, mixed $pValue): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$pName |
string | |
$pValue |
mixed |
getType
public getType(): string
setType
public setType(string $type): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
string |
getTitle
public getTitle(): string
setTitle
public setTitle(string $title): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$title |
string |
getReactComponent
public getReactComponent(): string
setReactComponent
public setReactComponent(string $reactComponent): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$reactComponent |
string |
getReadonly
public getReadonly(): bool
setReadonly
public setReadonly(bool $readonly = true): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$readonly |
bool |
getRequired
public getRequired(): bool
setRequired
public setRequired(bool $required = true): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$required |
bool |
getPlaceholder
public getPlaceholder(): bool
setPlaceholder
public setPlaceholder(bool $placeholder = true): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$placeholder |
bool |
getDecimals
public getDecimals(): int
setDecimals
public setDecimals(int $decimals): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$decimals |
int |
getUnit
public getUnit(): string
setUnit
public setUnit(string $unit): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$unit |
string |
getFormat
public getFormat(): bool
setFormat
public setFormat(bool $format = true): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$format |
bool |
getDescription
public getDescription(): string
setDescription
public setDescription(string $description): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$description |
string |
getLookupModel
public getLookupModel(): string
setLookupModel
public setLookupModel(string $lookupModel): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$lookupModel |
string |
getInputProps
public getInputProps(): array
setInputProps
public setInputProps(array $inputProps): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$inputProps |
array |
getExamples
public getExamples(): array
setExamples
public setExamples(array $examples): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$examples |
array |
getEnumValues
public getEnumValues(): array
setEnumValues
public setEnumValues(array $enumValues): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$enumValues |
array |
getEnumCssClasses
public getEnumCssClasses(): array
setEnumCssClasses
public setEnumCssClasses(array $enumCssClasses): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$enumCssClasses |
array |
getPredefinedValues
public getPredefinedValues(): array
setPredefinedValues
public setPredefinedValues(array $predefinedValues): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$predefinedValues |
array |
getDefaultValue
public getDefaultValue(): mixed
setDefaultValue
public setDefaultValue(mixed $defaultValue): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$defaultValue |
mixed |
getCssClass
public getCssClass(): string
setCssClass
public setCssClass(string $cssClass): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$cssClass |
string |
getEndpoint
public getEndpoint(): string
setEndpoint
public setEndpoint(string $endpoint): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$endpoint |
string |
getCreatable
public getCreatable(): bool
setCreatable
public setCreatable(bool $creatable = true): \Hubleto\Framework\Description\Input
Parameters:
Parameter | Type | Description |
---|---|---|
$creatable |
bool |
jsonSerialize
public jsonSerialize(): array
toArray
public toArray(): array