public function __construct(Schema $schema, $tableName) { Table::__construct($schema, $tableName); $this->columnsLockFile = new MicrotimeLockFile(new TempFile()); $this->columnsFile = new LockableFile(new TempFile()); $this->dataLockFile = new MicrotimeLockFile(new TempFile()); $this->dataFile = new LockableFile(new TempFile()); }
public function __construct(Schema $schema, $table_name) { parent::__construct($schema, $table_name); $path_to_schema = $this->schema->path(); $columns_path = $path_to_schema . $table_name . '.columns'; $data_path = $path_to_schema . $table_name . '.data'; $this->columnsLockFile = new MicrotimeLockFile(new File($columns_path . '.lock.cgi')); $this->columnsFile = new LockableFile(new File($columns_path . '.cgi')); $this->dataLockFile = new MicrotimeLockFile(new File($data_path . '.lock.cgi')); $this->dataFile = new LockableFile(new File($data_path . '.cgi')); }