http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84499
Revision: 84499
Author: happy-melon
Date: 2011-03-21 23:27:08 +0000 (Mon, 21 Mar 2011)
Log Message:
-----------
Follow-up r84475: what ever posessed me to get rid of this?
Modified Paths:
--------------
trunk/phase3/includes/Block.php
Modified: trunk/phase3/includes/Block.php
===================================================================
--- trunk/phase3/includes/Block.php 2011-03-21 23:03:11 UTC (rev 84498)
+++ trunk/phase3/includes/Block.php 2011-03-21 23:27:08 UTC (rev 84499)
@@ -1171,6 +1171,17 @@
}
/**
+ * Get the target and target type for this particular Block. Note that
for autoblocks,
+ * this returns the unredacted name; frontend functions need to call
$block->getRedactedName()
+ * in this situation.
+ * @return array( User|String, Block::TYPE_ constant )
+ * FIXME: this should be an integral part of the Block member variables
+ */
+ public function getTargetAndType() {
+ return array( $this->getTarget(), $this->getType() );
+ }
+
+ /**
* Get the target for this particular Block. Note that for autoblocks,
* this returns the unredacted name; frontend functions need to call
$block->getRedactedName()
* in this situation.
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs