Init(); } /** * Initialization. * * @return void */ private function Init() { $this->sDataLabelField = 'label'; $this->sDataValueField = 'value'; $this->aDataSearchFields = ['search']; $this->sGroupField = null; $this->sTooltipField = 'label'; } /** @inheritDoc */ public function GetDataValueField(): string { return $this->sDataValueField; } /** @inheritDoc */ public function SetDataValueField(string $sField): AbstractDataProvider { $this->sDataValueField = $sField; return $this; } /** @inheritDoc */ public function GetDataLabelField(): string { return $this->sDataLabelField; } /** @inheritDoc */ public function SetDataLabelField(string $sField): AbstractDataProvider { $this->sDataLabelField = $sField; return $this; } /** @inheritDoc */ public function GetDataSearchFields(): array { return $this->aDataSearchFields; } /** @inheritDoc */ public function SetDataSearchFields(array $aFields): AbstractDataProvider { $this->aDataSearchFields = $aFields; return $this; } /** @inheritDoc */ public function GetGroupField(): ?string { return $this->sGroupField; } /** @inheritDoc */ public function SetGroupField(string $sField): iDataProvider { $this->sGroupField = $sField; return $this; } /** @inheritDoc */ public function GetTooltipField(): ?string { return $this->sTooltipField; } /** @inheritDoc */ public function SetTooltipField(string $sField): iDataProvider { $this->sTooltipField = $sField; return $this; } /** * IsAjaxProviderType. * * @return bool */ public function IsAjaxProviderType(): bool { return $this->GetType() === iDataProvider::TYPE_AJAX_PROVIDER; } /** * IsSimpleProviderType. * * @return bool */ public function IsSimpleProviderType(): bool { return $this->GetType() === iDataProvider::TYPE_SIMPLE_PROVIDER; } }