MediaWiki master
HistoryBlob.php
Go to the documentation of this file.
1<?php
14interface HistoryBlob {
24 public function addItem( $text );
25
33 public function getItem( $key );
34
45 public function setText( $text );
46
52 public function getText();
53
58 public function isHappy(): bool;
59}
Base class for general text storage via the "object" flag in old_flags, or two-part external storage ...
setText( $text)
Set the "default text" This concept is an odd property of the current DB schema, whereby each text it...
getText()
Get default text.
isHappy()
Helper function for compression jobs Returns true until the object is "full" and ready to be committe...
getItem( $key)
Get item by key, or false if the key is not present.
addItem( $text)
Adds an item of text, returns a stub object which points to the item.