From: Happy-melon Date: Mon, 21 Mar 2011 23:27:08 +0000 (+0000) Subject: Follow-up r84475: what ever posessed me to get rid of this? X-Git-Tag: 1.31.0-rc.0~31260 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=271062e07ee552e3c7ca5b8bcde329d372f0c1af;p=lhc%2Fweb%2Fwiklou.git Follow-up r84475: what ever posessed me to get rid of this? --- 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()