The class IdSerializer provides handy methods to serialize and un-serialize model ids including the data provider name into a string.
| deprecated | This class gonna be replaced by the ModelId. Use this instead! |
|---|---|
| see | |
| see |
__construct(string $dataProviderName, mixed $modelId)
stringThe data provider name.
mixedThe model id.
isValid() : bool
boolsetDataProviderName(string $dataProviderName) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\IdSerializer
stringThe name.
setId(mixed $modelId) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\IdSerializer
mixedThe id.