You are here

function Smarty_Compiler::_add_plugin in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/smarty/Smarty_Compiler.class.php \Smarty_Compiler::_add_plugin()

add plugin

Parameters

string $type:

string $name:

boolean? $delayed_loading:

4 calls to Smarty_Compiler::_add_plugin()
Smarty_Compiler::_compile_block_tag in includes/moodle/lib/smarty/Smarty_Compiler.class.php
compile block function tag
Smarty_Compiler::_compile_custom_tag in includes/moodle/lib/smarty/Smarty_Compiler.class.php
compile custom function tag
Smarty_Compiler::_compile_insert_tag in includes/moodle/lib/smarty/Smarty_Compiler.class.php
Compile {insert ...} tag
Smarty_Compiler::_parse_modifiers in includes/moodle/lib/smarty/Smarty_Compiler.class.php
parse modifier chain into PHP code

File

includes/moodle/lib/smarty/Smarty_Compiler.class.php, line 1949

Class

Smarty_Compiler
Template compiling class @package Smarty

Code

function _add_plugin($type, $name, $delayed_loading = null) {
  if (!isset($this->_plugin_info[$type])) {
    $this->_plugin_info[$type] = array();
  }
  if (!isset($this->_plugin_info[$type][$name])) {
    $this->_plugin_info[$type][$name] = array(
      $this->_current_file,
      $this->_current_line_no,
      $delayed_loading,
    );
  }
}