public static function get_record_by_uuid(\databox $databox, $uuid, $record_id = null)
    {
        $records = $databox->getRecordRepository()->findByUuid($uuid);

        if (!is_null($record_id)) {
            $records = array_filter($records, function (record_adapter $record) use ($record_id) {
                return $record->getRecordId() == $record_id;
            });
        }

        return $records;
    }
public static function get_record_by_uuid(\databox $databox, $uuid, $record_id = null)
    {
        $records = $databox->getRecordRepository()->findByUuid($uuid);

        if (!is_null($record_id)) {
            $records = array_filter($records, function (record_adapter $record) use ($record_id) {
                return $record->getRecordId() == $record_id;
            });
        }

        return $records;
    }
public static function get_record_by_uuid ( \ databox $ databox , $ uuid , $ record_id = null ) { $ records = $ databox -> getRecordRepository ( ) -> findByUuid ( $ uuid ) ; if ( ! is_null ( $ record_id ) ) { $ records = array_filter ( $ records , function ( record_adapter $ record ) use ( $ record_id ) { return $ record -> getRecordId ( ) == $ record_id ; } ) ; } return $ records ; }
Search for a record on a databox by UUID

@param \databox $databox
@param string   $uuid
@param int      $record_id Restrict check on a record_id
@return record_adapter[]
@deprecated use {@link databox::getRecordRepository} instead.
Search for a record on a databox by UUID