get_record_by_id — Get a record by its ID.¶
Summary¶
- get_record_by_id($modelName, $recordId)¶
Get a record by its ID.
Parameters: - $modelName (string) – Name of the Record model being looked up (e.g., ‘Item’)
- $recordId (int) – The ID of the specific record to find.
Returns: Omeka_Record_AbstractRecord|null The record, or null if it cannot be found.