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 *