diff options
author | pierre.spring <pierre.spring@liip.ch> | 2008-08-29 14:58:28 +0200 |
---|---|---|
committer | pierre.spring <pierre.spring@liip.ch> | 2008-08-29 14:58:28 +0200 |
commit | 3c829837da502837a50ecf063483f64d64b5b121 (patch) | |
tree | a5f5d483adbe068dccab6008ee7661fe7084a48e /lib/plugins/syntax.php | |
parent | f6dad9fdc0860d080d2807e2ae50f5a046332ba8 (diff) | |
download | dokuwiki-3c829837da502837a50ecf063483f64d64b5b121.tar.gz dokuwiki-3c829837da502837a50ecf063483f64d64b5b121.zip |
syntax plugin match getter and setter
darcs-hash:20080829125828-c07ef-b27cbac1f23e313572952ea8f1172fbd88f60493.gz
Diffstat (limited to 'lib/plugins/syntax.php')
-rw-r--r-- | lib/plugins/syntax.php | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index 7ded173cd..c3d659456 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -22,7 +22,8 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { var $lang = array(); // array to hold language dependent strings, best accessed via ->getLang() var $configloaded = false; // set to true by loadConfig() after loading plugin configuration variables var $conf = array(); // array to hold plugin settings, best accessed via ->getConf() - + var $match = null; // string containing the match of a syntax plugin, accessed via + // it's setters and getters setMatch() and getMatch() /** * General Info * @@ -266,5 +267,29 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { return $conf; } + /** + * setMatch is the setter of the match string in a syntax plugin + * + * @author Pierre Spring <pierre.spring@liip.ch> + * @param string $match + * @access public + * @return void + */ + function setMatch($match) + { + $this->match = (string) $match; + } + /** + * getMatch is the getter of the match string in a syntax plugin + * + * @author Pierre Spring <pierre.spring@liip.ch> + * @access public + * @return string + */ + function getMatch() + { + return $this->match; + } + } //Setup VIM: ex: et ts=4 enc=utf-8 : |