Heratio Framework API Reference

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
bool

findById()

Get config by ID.

public findById(int $id) : object|null
Parameters
$id : int
Return values
object|null

getConfig()

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|null

save()

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
int

update()

Update specific fields.

public update(int $id, array<string|int, mixed> $data) : bool
Parameters
$id : int
$data : array<string|int, mixed>
Return values
bool

        
On this page

Search results