From 271062e07ee552e3c7ca5b8bcde329d372f0c1af Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Mon, 21 Mar 2011 23:27:08 +0000 Subject: [PATCH] Follow-up r84475: what ever posessed me to get rid of this? --- includes/Block.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/Block.php b/includes/Block.php index 78c30279bf..c63d0f6f76 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -1170,6 +1170,17 @@ class Block { : $this->type; } + /** + * 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() -- 2.20.1