ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTemplateX Class Reference

Dummy class that inherits from new ITX PEAR Class (see header.inc) More...

+ Inheritance diagram for ilTemplateX:
+ Collaboration diagram for ilTemplateX:

Public Member Functions

 callConstructor ()
 callConstructor ()
- Public Member Functions inherited from HTML_Template_ITX
 HTML_Template_ITX ($root= '')
 Builds some complex regexps and calls the constructor of the parent class.
 init ()
 Clears all datafields of the object and rebuild the internal blocklist.
 replaceBlock ($block, $template, $keep_content=false)
 Replaces an existing block with new content.
 replaceBlockfile ($block, $filename, $keep_content=false)
 Replaces an existing block with new content from a file.
 addBlock ($placeholder, $blockname, $template)
 Adds a block to the template changing a variable placeholder to a block placeholder.
 addBlockfile ($placeholder, $blockname, $filename)
 Adds a block taken from a file to the template changing a variable placeholder to a block placeholder.
 placeholderExists ($placeholder, $block= '')
 Returns the name of the (first) block that contains the specified placeholder.
 performCallback ()
 Checks the list of function calls in the template and calls their callback function.
 getFunctioncalls ()
 Returns a list of all function calls in the current template.
 setFunctioncontent ($functionID, $replacement)
 Replaces a function call with the given replacement.
 setCallbackFunction ($tplfunction, $callbackfunction, $callbackobject= '', $expandCallbackParameters=false)
 Sets a callback function.
 setCallbackFuntiontable ($functions)
 Sets the Callback function lookup table.
 removeBlockData ($block)
 Recursively removes all data assiciated with a block, including all inner blocks.
 getBlocklist ()
 Returns a list of blocknames in the template.
 blockExists ($blockname)
 Checks wheter a block exists.
 getBlockvariables ($block)
 Returns a list of variables of a block.
 BlockvariableExists ($block, $variable)
 Checks wheter a block variable exists.
 buildFunctionlist ()
 Builds a functionlist from the template.
 getValue ($code, $delimiter)
 Truncates the given code from the first occurence of $delimiter but ignores $delimiter enclosed by " or '.
 deleteFromBlockvariablelist ($block, $variables)
 Deletes one or many variables from the block variable list.
 updateBlockvariablelist ($block)
 Updates the variable list of a block.
 findPlaceholderBlocks ($variable)
 Returns an array of blocknames where the given variable placeholder is used.
 warning ($message, $file= '', $line=0)
 Handles warnings, saves them to $warn and prints them or calls die() depending on the flags.
- Public Member Functions inherited from HTML_Template_IT
 HTML_Template_IT ($root= '', $options=null)
 Builds some complex regular expressions and optinally sets the file root directory.
 setOption ($option, $value)
 Sets the option for the template class.
 setOptions ($options)
 Sets the options for the template class.
 show ($block= '__global__')
 Print a certain block with all replacements done.
 get ($block= '__global__')
 Returns a block with all replacements done.
 parse ($block= '__global__', $flag_recursion=false)
 Parses the given block.
 parseCurrentBlock ()
 Parses the current block.
 setVariable ($variable, $value= '')
 Sets a variable value.
 setCurrentBlock ($block= '__global__')
 Sets the name of the current block that is the block where variables are added.
 touchBlock ($block)
 Preserves an empty block even if removeEmptyBlocks is true.
 free ()
 Clears all datafields of the object.
 setTemplate ($template, $removeUnknownVariables=true, $removeEmptyBlocks=true)
 Sets the template.
 loadTemplatefile ($filename, $removeUnknownVariables=true, $removeEmptyBlocks=true)
 Reads a template file from the disk.
 setRoot ($root)
 Sets the file root.
 buildBlockvariablelist ()
 Build a list of all variables within of a block.
 getGlobalvariables ()
 Returns a list of all global variables.
 findBlocks ($string)
 Recusively builds a list of all blocks within the template.
 getFile ($filename)
 Reads a file from disk and returns its content.
 _addPregDelimiters ($str)
 Adds delimiters to a string, so it can be used as a pattern in preg_* functions.
 _preserveOpeningDelimiter ($str)
 Replaces an opening delimiter by a special string.
 errorMessage ($value, $blockname= '')
 Return a textual error message for a IT error code.

Additional Inherited Members

- Data Fields inherited from HTML_Template_ITX
 $warn = array()
 $printWarning = false
 $haltOnWarning = false
 $checkblocknameRegExp = ''
 $functionPrefix = 'func_'
 $functionnameRegExp = '[_a-zA-Z]+[A-Za-z_0-9]*'
 $functionRegExp = ''
 $functions = array()
 $callback = array()

Detailed Description

Dummy class that inherits from new ITX PEAR Class (see header.inc)

Dummy class that inherits from old ITX PEAR Class (see header.inc)

Definition at line 7 of file class.ilTemplateHTMLITX.php.

Member Function Documentation

ilTemplateX::callConstructor ( )

Definition at line 9 of file class.ilTemplateHTMLITX.php.

References HTML_Template_ITX\HTML_Template_ITX().

Referenced by ilTemplate\ilTemplate().

{
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilTemplateX::callConstructor ( )

Definition at line 10 of file class.ilTemplateITX.php.


The documentation for this class was generated from the following files: