[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/phpbb/template/twig/ -> extension.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 184 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

extension:: (8 methods):
  __construct()
  getName()
  getTokenParsers()
  getFilters()
  getFunctions()
  getOperators()
  loop_subset()
  lang()


Class: extension  - X-Ref

__construct(\phpbb\template\context $context, $user)   X-Ref
Constructor

param: \phpbb\template\context $context
param: \phpbb\user $user
return: \phpbb\template\twig\extension

getName()   X-Ref
Get the name of this extension

return: string

getTokenParsers()   X-Ref
Returns the token parser instance to add to the existing list.

return: array An array of Twig_TokenParser instances

getFilters()   X-Ref
Returns a list of filters to add to the existing list.

return: array An array of filters

getFunctions()   X-Ref
Returns a list of global functions to add to the existing list.

return: array An array of global functions

getOperators()   X-Ref
Returns a list of operators to add to the existing list.

return: array An array of operators

loop_subset(\Twig_Environment $env, $item, $start, $end = null, $preserveKeys = false)   X-Ref
Grabs a subset of a loop

param: \Twig_Environment $env          A Twig_Environment instance
param: mixed            $item         A variable
param: integer          $start        Start of the subset
param: integer          $end            End of the subset
param: Boolean          $preserveKeys Whether to preserve key or not (when the input is an array)
return: mixed The sliced variable

lang()   X-Ref
Get output for a language variable (L_FOO, LA_FOO)

This function checks to see if the language var was outputted to $context
(e.g. in the ACP, L_TITLE)
If not, we return the result of $user->lang()

return: string



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1