dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Revert "Adding a bit more documentation to mw.loader.using""
[lhc/web/wiklou.git]
/
includes
/
cache
/
LinkCache.php
diff --git
a/includes/cache/LinkCache.php
b/includes/cache/LinkCache.php
index
de2a728
..
e80dfb3
100644
(file)
--- a/
includes/cache/LinkCache.php
+++ b/
includes/cache/LinkCache.php
@@
-78,7
+78,7
@@
class LinkCache {
/**
* General accessor to get/set whether SELECT FOR UPDATE should be used
*
/**
* General accessor to get/set whether SELECT FOR UPDATE should be used
*
- * @param $update
+ * @param
bool
$update
* @return bool
*/
public function forUpdate( $update = null ) {
* @return bool
*/
public function forUpdate( $update = null ) {
@@
-86,8
+86,8
@@
class LinkCache {
}
/**
}
/**
- * @param $title
- * @return
array|
int
+ * @param
string
$title
+ * @return int
*/
public function getGoodLinkID( $title ) {
if ( array_key_exists( $title, $this->mGoodLinks ) ) {
*/
public function getGoodLinkID( $title ) {
if ( array_key_exists( $title, $this->mGoodLinks ) ) {
@@
-100,9
+100,9
@@
class LinkCache {
/**
* Get a field of a title object from cache.
* If this link is not good, it will return NULL.
/**
* Get a field of a title object from cache.
* If this link is not good, it will return NULL.
- * @param
$title T
itle
+ * @param
Title $t
itle
* @param string $field ('length','redirect','revision','model')
* @param string $field ('length','redirect','revision','model')
- * @return
mixed
+ * @return
string|null
*/
public function getGoodLinkFieldObj( $title, $field ) {
$dbkey = $title->getPrefixedDBkey();
*/
public function getGoodLinkFieldObj( $title, $field ) {
$dbkey = $title->getPrefixedDBkey();
@@
-114,7
+114,7
@@
class LinkCache {
}
/**
}
/**
- * @param $title
+ * @param
string
$title
* @return bool
*/
public function isBadLink( $title ) {
* @return bool
*/
public function isBadLink( $title ) {
@@
-147,8
+147,8
@@
class LinkCache {
/**
* Same as above with better interface.
* @since 1.19
/**
* Same as above with better interface.
* @since 1.19
- * @param
$title T
itle
- * @param
$row o
bject which has the fields page_id, page_is_redirect,
+ * @param
Title $t
itle
+ * @param
stdClass $row O
bject which has the fields page_id, page_is_redirect,
* page_latest and page_content_model
*/
public function addGoodLinkObjFromRow( $title, $row ) {
* page_latest and page_content_model
*/
public function addGoodLinkObjFromRow( $title, $row ) {
@@
-163,7
+163,7
@@
class LinkCache {
}
/**
}
/**
- * @param
$title T
itle
+ * @param
Title $t
itle
*/
public function addBadLinkObj( $title ) {
$dbkey = $title->getPrefixedDBkey();
*/
public function addBadLinkObj( $title ) {
$dbkey = $title->getPrefixedDBkey();
@@
-177,7
+177,7
@@
class LinkCache {
}
/**
}
/**
- * @param
$title T
itle
+ * @param
Title $t
itle
*/
public function clearLink( $title ) {
$dbkey = $title->getPrefixedDBkey();
*/
public function clearLink( $title ) {
$dbkey = $title->getPrefixedDBkey();
@@
-197,8
+197,8
@@
class LinkCache {
/**
* Add a title to the link cache, return the page_id or zero if non-existent
*
/**
* Add a title to the link cache, return the page_id or zero if non-existent
*
- * @param string $title
t
itle to add
- * @return
Integer
+ * @param string $title
T
itle to add
+ * @return
int
*/
public function addLink( $title ) {
$nt = Title::newFromDBkey( $title );
*/
public function addLink( $title ) {
$nt = Title::newFromDBkey( $title );
@@
-212,8
+212,8
@@
class LinkCache {
/**
* Add a title to the link cache, return the page_id or zero if non-existent
*
/**
* Add a title to the link cache, return the page_id or zero if non-existent
*
- * @param $nt Title object to add
- * @return
Integer
+ * @param
Title
$nt Title object to add
+ * @return
int
*/
public function addLinkObj( $nt ) {
global $wgAntiLockFlags, $wgContentHandlerUseDB;
*/
public function addLinkObj( $nt ) {
global $wgAntiLockFlags, $wgContentHandlerUseDB;