Habari\InfoRecords::__set PHP Method

__set() public method

The value will not be stored in the database until calling $this->commit();
public __set ( string $name, mixed $value )
$name string Name of the key to set
$value mixed Value to set
    public function __set($name, $value)
    {
        $this->_load();
        $this->__inforecord_array[$name] = array('changed' => true, 'value' => $value);
        $this->_dirty = true;
        $self = $this;
        register_shutdown_function(function () use($self) {
            $self->commit();
        });
    }