◆ __construct()
SWLEdit::__construct |
( |
|
$pageId, |
|
|
|
$userName, |
|
|
|
$time, |
|
|
|
$id = null |
|
) |
| |
◆ getId()
Returns the edit database id (swl_edits.edit_id).
- Since
- 0.1
- Returns
- integer
◆ getPageId()
Returns the ID of the page the edit was made to.
- Since
- 0.1
- Returns
- integer
◆ getTime()
Gets the time on which the changes where made.
- Since
- 0.1
- Returns
- integer
◆ getTitle()
Gets the title of the page these changes belong to.
- Since
- 0.1
- Returns
- Title
◆ getUser()
Gets the user that made the changes.
- Since
- 0.1
- Returns
- User
◆ 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
-
- 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
-
- Returns
- 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: