aboutsummaryrefslogtreecommitdiffstats
path: root/includes/WatchedItem.php
diff options
context:
space:
mode:
authorAntoine Musso <hashar@users.mediawiki.org>2004-09-02 23:28:24 +0000
committerAntoine Musso <hashar@users.mediawiki.org>2004-09-02 23:28:24 +0000
commit90155b8a9719ada6522a320a3315b4e698fdd970 (patch)
tree23ffd27058bd2b089b6d5c3b7c70ec3aea757f98 /includes/WatchedItem.php
parent81e0b9d3c0c2bad288a3d73a38738070092db467 (diff)
downloadmediawikicore-90155b8a9719ada6522a320a3315b4e698fdd970.tar.gz
mediawikicore-90155b8a9719ada6522a320a3315b4e698fdd970.zip
Changing comments layout preparing for generated documentation with Phpdocumentor
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/5032
Diffstat (limited to 'includes/WatchedItem.php')
-rw-r--r--includes/WatchedItem.php25
1 files changed, 18 insertions, 7 deletions
diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php
index cc7a55e5a9c0..bd47214aa292 100644
--- a/includes/WatchedItem.php
+++ b/includes/WatchedItem.php
@@ -1,5 +1,11 @@
<?php
+/**
+ *
+ */
+/**
+ *
+ */
class WatchedItem {
var $mTitle, $mUser;
@@ -14,13 +20,17 @@ class WatchedItem {
return $wl;
}
- # Returns the memcached key for this item
+ /**
+ * Returns the memcached key for this item
+ */
function watchKey() {
global $wgDBname;
return "$wgDBname:watchlist:user:$this->id:page:$this->ns:$this->ti";
}
- # Is mTitle being watched by mUser?
+ /**
+ * Is mTitle being watched by mUser?
+ */
function isWatched()
{
# Pages and their talk pages are considered equivalent for watching;
@@ -40,8 +50,7 @@ class WatchedItem {
return $iswatched;
}
- function addWatch()
- {
+ function addWatch() {
$fname = "WatchedItem::addWatch";
# REPLACE instead of INSERT because occasionally someone
# accidentally reloads a watch-add operation.
@@ -58,8 +67,7 @@ class WatchedItem {
return true;
}
- function removeWatch()
- {
+ function removeWatch() {
$fname = 'WatchedItem::removeWatch';
$dbw =& wfGetDB( DB_MASTER );
@@ -80,7 +88,10 @@ class WatchedItem {
}
}
- /* static */ function duplicateEntries( $ot, $nt ) {
+ /**
+ * @static
+ */
+ function duplicateEntries( $ot, $nt ) {
$fname = "WatchedItem::duplicateEntries";
global $wgMemc, $wgDBname;
$oldnamespace = $ot->getNamespace() & ~1;