public static function update_category(stdClass $record) {
        $category = new category($record->id);
        $category->from_record($record);

        $result = $category->update();

        return $category;
    }
public static function update_category(stdClass $record) {
        $category = new category($record->id);
        $category->from_record($record);

        $result = $category->update();

        return $category;
    }
public static function update_category ( stdClass $ record ) { $ category = new category ( $ record -> id ) ; $ category -> from_record ( $ record ) ; $ result = $ category -> update ( ) ; return $ category ; }
Updates an existing data category.

@param stdClass $record
@return \tool_dataprivacy\category.
Updates an existing data category .