Class modParser095

Description

An extension of the MODx parser to support legacy MODx tags.

Use of this class is only necessary if you have a site that contains legacy MODx tags. It provides facilities for translating the legacy tags, as well as for supporting legacy behavior of the onParseDocument event used in many legacy MODx plugins.

Located in /model/modx/modparser095.class.php (line 19)

modParser
   |
   --modParser095
Variable Summary
Method Summary
 void processElementTags ( $parentTag,  &$content, [ $processUncacheable = false], [ $removeUnprocessed = false], [ $prefix = "[["], [ $suffix = "]]"], [ $tokens = array ()], [ $echo = false])
 void translate (string &$content, [array $tokens = array ()], [ $echo = false])
Variables
mixed $tagTranslation = array (
'[[++' => array ('[(', ')]', '++'),'[[$'=>array('{{','}}','$'),'[[*'=>array('[*','*]','*'),'[[~'=>array('[~','~]','~'),'[[+'=>array('[+','+]','+'),'[[!'=>array('[!','!]','!'),)
(line 20)
  • access: public

Inherited Variables

Inherited from modParser

modParser::$modx
Methods
processElementTags (line 72)

Adds the legacy tag translation and legacy OnParseDocument event support.

  • access: public
void processElementTags ( $parentTag,  &$content, [ $processUncacheable = false], [ $removeUnprocessed = false], [ $prefix = "[["], [ $suffix = "]]"], [ $tokens = array ()], [ $echo = false])
  • $parentTag
  • &$content
  • $processUncacheable
  • $removeUnprocessed
  • $prefix
  • $suffix
  • $tokens
  • $echo

Redefinition of:
modParser::processElementTags()
Collects and processes any set of tags as defined by a prefix and suffix.
translate (line 38)

Collects MODx legacy tags and translates them to the new tag format.

  • return: The content is operated on by reference.
  • access: public
void translate (string &$content, [array $tokens = array ()], [ $echo = false])
  • string &$content: The content in which legacy tags are to be replaced.
  • array $tokens: An optional array of tag tokens on which to exclude translation of the tags.
  • $echo

Inherited Methods

Inherited From modParser

 modParser::__construct()
 modParser::collectElementTags()
 modParser::loadFromCache()
 modParser::mergeTagOutput()
 modParser::parseProperties()
 modParser::parsePropertyString()
 modParser::processElementTags()
 modParser::processTag()
 modParser::realname()
 modParser::_XType()

Documentation generated on Fri, 17 Jun 2011 10:03:43 -0600 by phpDocumentor 1.4.3