From b08051ccd36f6377ec85879565c14ae9cddb4c94 Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Wed, 24 Dec 2025 22:20:24 +0500 Subject: [PATCH] commits merging --- mirzaev/record/system/traits/record.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/mirzaev/record/system/traits/record.php b/mirzaev/record/system/traits/record.php index bdce593..742058e 100755 --- a/mirzaev/record/system/traits/record.php +++ b/mirzaev/record/system/traits/record.php @@ -48,6 +48,29 @@ trait record */ protected baza_record $record; + /** + * Constructor + * + * @method record|null $record The record + * + * @return void + */ + public function __construct(?record $record = null) + { + // Initializing the database + /* $this->database = new database() + ->encoding(encoding::utf8) + ->columns( + new column('identifier', type::long_long_unsigned), + new column('updated', type::integer_unsigned), + new column('created', type::integer_unsigned) + ) + ->connect($this->file); */ + + // Initializing the record + $record instanceof baza_record and $this->record = $record; + } + /** * Read *