*/
class WikiRevision {
var $title = NULL;
+ var $id = 0;
var $timestamp = "20010115000000";
var $user = 0;
var $user_text = "";
$this->title = Title::newFromText( $text );
}
+ function setID( $id ) {
+ $this->id = $id;
+ }
+
function setTimestamp( $ts ) {
# 2003-08-05T18:30:02Z
$this->timestamp = wfTimestamp( TS_MW, $ts );
return $this->title;
}
+ function getID() {
+ return $this->id;
+ }
+
function getTimestamp() {
return $this->timestamp;
}
$this->workTitle = $this->appenddata;
$this->pageCallback( $this->workTitle );
break;
+ case "id":
+ if ( $this->parenttag == 'revision' ) {
+ $this->workRevision->setID( $this->appenddata );
+ }
+ break;
case "text":
$this->workRevision->setText( $this->appenddata );
break;