Elgg\Mocks\Database\MetadataTable::update PHP Method

update() public method

public update ( $id, $name, $value, $value_type, $owner_guid, $access_id )
    public function update($id, $name, $value, $value_type, $owner_guid, $access_id)
    {
        if (!isset($this->rows[$id])) {
            return false;
        }
        $row = $this->rows[$id];
        $row->name = $name;
        $row->value = $value;
        $row->value_type = detect_extender_valuetype($value, $this->db->sanitizeString(trim($value_type)));
        $row->owner_guid = $owner_guid;
        $row->access_id = $access_id;
        $this->rows[$id] = $row;
        $this->addQuerySpecs($row);
        return parent::update($id, $name, $value, $value_type, $owner_guid, $access_id);
    }