Merge "Improvements to RefreshLinksJob/DeleteLinksJob locking"
[lhc/web/wiklou.git] / includes / DummyLinker.php
index 150808b..ba24799 100644 (file)
@@ -5,7 +5,11 @@
  */
 class DummyLinker {
 
+       /**
+        * @deprecated since 1.27
+        */
        public function getInterwikiLinkAttributes( $title, $unused = null, $class = 'external' ) {
+               wfDeprecated( __METHOD__, '1.27' );
                return Linker::getInterwikiLinkAttributes(
                        $title,
                        $unused,
@@ -13,7 +17,11 @@ class DummyLinker {
                );
        }
 
+       /**
+        * @deprecated since 1.27
+        */
        public function getInternalLinkAttributes( $title, $unused = null, $class = '' ) {
+               wfDeprecated( __METHOD__, '1.27' );
                return Linker::getInternalLinkAttributes(
                        $title,
                        $unused,
@@ -21,12 +29,16 @@ class DummyLinker {
                );
        }
 
+       /**
+        * @deprecated since 1.27
+        */
        public function getInternalLinkAttributesObj(
                $nt,
                $unused = null,
                $class = '',
                $title = false
        ) {
+               wfDeprecated( __METHOD__, '1.27' );
                return Linker::getInternalLinkAttributesObj(
                        $nt,
                        $unused,
@@ -35,16 +47,20 @@ class DummyLinker {
                );
        }
 
+       /**
+        * @deprecated since 1.28, use LinkRenderer::getLinkClasses() instead
+        */
        public function getLinkColour( $t, $threshold ) {
+               wfDeprecated( __METHOD__, '1.28' );
                return Linker::getLinkColour( $t, $threshold );
        }
 
        public function link(
                $target,
                $html = null,
-               $customAttribs = [ ],
-               $query = [ ],
-               $options = [ ]
+               $customAttribs = [],
+               $query = [],
+               $options = []
        ) {
                return Linker::link(
                        $target,
@@ -58,9 +74,9 @@ class DummyLinker {
        public function linkKnown(
                $target,
                $html = null,
-               $customAttribs = [ ],
-               $query = [ ],
-               $options = [ 'known', 'noclasses' ]
+               $customAttribs = [],
+               $query = [],
+               $options = [ 'known' ]
        ) {
                return Linker::linkKnown(
                        $target,
@@ -111,8 +127,8 @@ class DummyLinker {
                Parser $parser,
                Title $title,
                $file,
-               $frameParams = [ ],
-               $handlerParams = [ ],
+               $frameParams = [],
+               $handlerParams = [],
                $time = false,
                $query = "",
                $widthOption = null
@@ -135,7 +151,7 @@ class DummyLinker {
                $label = '',
                $alt,
                $align = 'right',
-               $params = [ ],
+               $params = [],
                $framed = false,
                $manualthumb = ""
        ) {
@@ -154,8 +170,8 @@ class DummyLinker {
        public function makeThumbLink2(
                Title $title,
                $file,
-               $frameParams = [ ],
-               $handlerParams = [ ],
+               $frameParams = [],
+               $handlerParams = [],
                $time = false,
                $query = ""
        ) {
@@ -220,7 +236,7 @@ class DummyLinker {
                $text,
                $escape = true,
                $linktype = '',
-               $attribs = [ ],
+               $attribs = [],
                $title = null
        ) {
                return Linker::makeExternalLink(
@@ -317,7 +333,7 @@ class DummyLinker {
                Title $title,
                $text,
                $wikiId = null,
-               $options = [ ]
+               $options = []
        ) {
                return Linker::makeCommentLink(
                        $title,
@@ -459,7 +475,7 @@ class DummyLinker {
                return Linker::formatSize( $size );
        }
 
-       public function titleAttrib( $name, $options = null, array $msgParams = [ ] ) {
+       public function titleAttrib( $name, $options = null, array $msgParams = [] ) {
                return Linker::titleAttrib(
                        $name,
                        $options,
@@ -479,7 +495,7 @@ class DummyLinker {
                );
        }
 
-       public function revDeleteLink( $query = [ ], $restricted = false, $delete = true ) {
+       public function revDeleteLink( $query = [], $restricted = false, $delete = true ) {
                return Linker::revDeleteLink(
                        $query,
                        $restricted,
@@ -491,7 +507,7 @@ class DummyLinker {
                return Linker::revDeleteLinkDisabled( $delete );
        }
 
-       public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [ ] ) {
+       public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [] ) {
                return Linker::tooltipAndAccesskeyAttribs(
                        $name,
                        $msgParams