diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-02-19 21:47:06 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-02-19 21:47:06 +0100 |
| commit | bdaa6e4909a0b0553c40cecdbbf951e5d90a5f32 (patch) | |
| tree | a295aeae80a3d0e87c6da8ff70fdd812d47a25ec /phpBB/phpbb/template/template.php | |
| parent | 937a38668869eb3b046e4b13b72091e947e6d0aa (diff) | |
| parent | 481a592b8dc04a09330bd302048e7a6f445121d8 (diff) | |
| download | forums-bdaa6e4909a0b0553c40cecdbbf951e5d90a5f32.tar forums-bdaa6e4909a0b0553c40cecdbbf951e5d90a5f32.tar.gz forums-bdaa6e4909a0b0553c40cecdbbf951e5d90a5f32.tar.bz2 forums-bdaa6e4909a0b0553c40cecdbbf951e5d90a5f32.tar.xz forums-bdaa6e4909a0b0553c40cecdbbf951e5d90a5f32.zip | |
Merge branch '3.1.x' into 3.2.x
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 041ecb12e4..9e3d658ca8 100644 --- a/phpBB/phpbb/template/template.php +++ b/phpBB/phpbb/template/template.php @@ -173,6 +173,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 |
