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)
string
The data provider name.
mixed
The model id.
isValid() : bool
bool
setDataProviderName(string $dataProviderName) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\IdSerializer
string
The name.
setId(mixed $modelId) : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\IdSerializer
mixed
The id.