diff options
author | javiexin <javiexin@gmail.com> | 2017-03-09 16:12:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 16:12:25 +0100 |
commit | bd12504f6cf03b36821a5cea2bf77a419496dcdb (patch) | |
tree | d30cc3506e1bbdc284dc7cca910c5dac6b927ae0 /phpBB/phpbb/template/template.php | |
parent | 96a90d3f81c1fcce3834ee72b7d1b9f76aa9354c (diff) | |
parent | 3e9f12d12d7dbdd2cee39425e81b5fdf66fcfbc8 (diff) | |
download | forums-bd12504f6cf03b36821a5cea2bf77a419496dcdb.tar forums-bd12504f6cf03b36821a5cea2bf77a419496dcdb.tar.gz forums-bd12504f6cf03b36821a5cea2bf77a419496dcdb.tar.bz2 forums-bd12504f6cf03b36821a5cea2bf77a419496dcdb.tar.xz forums-bd12504f6cf03b36821a5cea2bf77a419496dcdb.zip |
Merge branch '3.2.x' into ticket/15068
Diffstat (limited to 'phpBB/phpbb/template/template.php')
-rw-r--r-- | phpBB/phpbb/template/template.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/phpBB/phpbb/template/template.php b/phpBB/phpbb/template/template.php index dbb85dc110..26ed4af3f4 100644 --- a/phpBB/phpbb/template/template.php +++ b/phpBB/phpbb/template/template.php @@ -197,6 +197,23 @@ interface template public function alter_block_array($blockname, array $vararray, $key = false, $mode = 'insert'); /** + * Find the index for a specified key in the innermost specified block + * + * @param string $blockname the blockname, for example 'loop' + * @param mixed $key Key to search for + * + * array: KEY => VALUE [the key/value pair to search for within the loop to determine the correct position] + * + * int: Position [the position to search for] + * + * If key is false the position is set to 0 + * If key is true the position is set to the last entry + * + * @return mixed false if not found, index position otherwise; be sure to test with === + */ + public function find_key_index($blockname, $key); + + /** * Get path to template for handle (required for BBCode parser) * * @param string $handle Handle to retrieve the source file |