LandingConfigRepository
in package
Landing Config Repository.
Provides database access for heritage_landing_config table. Manages institution landing page configuration.
Table of Contents
Methods
- delete() : bool
- Delete landing config.
- findById() : object|null
- Get config by ID.
- getConfig() : object|null
- Get landing config for an institution (or default if null).
- save() : int
- Create or update landing config.
- update() : bool
- Update specific fields.
Methods
delete()
Delete landing config.
public
delete(int $id) : bool
Parameters
- $id : int
Return values
boolfindById()
Get config by ID.
public
findById(int $id) : object|null
Parameters
- $id : int
Return values
object|nullgetConfig()
Get landing config for an institution (or default if null).
public
getConfig([int|null $institutionId = null ]) : object|null
Parameters
- $institutionId : int|null = null
Return values
object|nullsave()
Create or update landing config.
public
save(array<string|int, mixed> $data[, int|null $institutionId = null ]) : int
Parameters
- $data : array<string|int, mixed>
- $institutionId : int|null = null
Return values
intupdate()
Update specific fields.
public
update(int $id, array<string|int, mixed> $data) : bool
Parameters
- $id : int
- $data : array<string|int, mixed>