Habari\InfoRecords::__unset PHP Method

__unset() public method

Remove an info option; immediately unsets from the storage AND removes from database. Use with caution.
public __unset ( string $name ) : boolean
$name string Name of the option to unset
return boolean true if the option is successfully unset, false otherwise
    public function __unset($name)
    {
        $this->_load();
        if (isset($this->__inforecord_array[$name])) {
            DB::delete($this->_table_name, array($this->_key_name => $this->_key_value, "name" => $name));
            unset($this->__inforecord_array[$name]);
            return true;
        }
        return false;
    }