use Revision\Page; $page = new Page(); $page->loadFromPageId(3, 2); // load revision 2 of page with id 3 echo $page->getContent(); // output the content of the loaded revision
use Revision\VersionControl; $vc = new VersionControl(); $revision = $vc->loadFromPageId(1234); echo $revision->getMessage(); // output the commit message of the loaded revisionThe loadFromPageId method belongs to the php revision library/package.