Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
SWLEdit Class Reference

Public Member Functions

 __construct ( $pageId, $userName, $time, $id=null)
 
 writeToDB ()
 
 getId ()
 
 getPageId ()
 
 getTitle ()
 
 getUserName ()
 
 getUser ()
 
 getTime ()
 

Static Public Member Functions

static newFromId ( $id)
 
static newFromDBResult ( $edit)
 

Constructor & Destructor Documentation

◆ __construct()

SWLEdit::__construct (   $pageId,
  $userName,
  $time,
  $id = null 
)

Constructor.

Since
0.1

Member Function Documentation

◆ getId()

SWLEdit::getId ( )

Returns the edit database id (swl_edits.edit_id).

Since
0.1
Returns
integer

◆ getPageId()

SWLEdit::getPageId ( )

Returns the ID of the page the edit was made to.

Since
0.1
Returns
integer

◆ getTime()

SWLEdit::getTime ( )

Gets the time on which the changes where made.

Since
0.1
Returns
integer

◆ getTitle()

SWLEdit::getTitle ( )

Gets the title of the page these changes belong to.

Since
0.1
Returns
Title

◆ getUser()

SWLEdit::getUser ( )

Gets the user that made the changes.

Since
0.1
Returns
User

◆ getUserName()

SWLEdit::getUserName ( )

Gets the name of the user that made the changes.

Since
0.1
Returns
string

◆ newFromDBResult()

static SWLEdit::newFromDBResult (   $edit)
static

Creates and returns a new instance of SWLEdit from a database result.

Since
0.1
Parameters
ResultWrapper$edit
Returns
SWLEdit

◆ newFromId()

static SWLEdit::newFromId (   $id)
static

Creates and returns a new instance of SWLEdit by getting it's info from the database.

Since
0.1
Parameters
integer$id
Returns
SWLEdit

◆ writeToDB()

SWLEdit::writeToDB ( )

Writes the edit to the database, either updating it when it already exists, or inserting it when it doesn't.

Since
0.1
Returns
boolean Success indicator

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy