summaryrefslogtreecommitdiff
path: root/lib/plugins/syntax.php
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'origin/master' into scrutinizerissuesGerrit Uitslag2014-12-09
|\ | | | | | | | | | | | | | | | | Conflicts: inc/media.php inc/plugin.php inc/template.php lib/plugins/authplain/_test/escaping.test.php lib/plugins/syntax.php
| * phpdocs syntax plugin base classGerrit Uitslag2014-12-03
| |
* | more PHPDocs, unused var, small bit code reformattingGerrit Uitslag2014-10-01
|/
* just some more doc blocksAndreas Gohr2014-05-25
|
* remove reference to reference from commentsChristopher Smith2014-03-06
|
* remove '&' from object parameters, PHP5 style not E_ALLChristopher Smith2014-03-05
|
* reintroduce a tiny bit of duplicationAndreas Gohr2014-01-07
| | | | | | | | | | This reads some duplication in the from of haveing a Doku_Parser_Mode and Doku_Parser_Mode_Plugin class which are basically the same but only the latter extends DokuWiki_Plugin. This avoids the performance/RAM problems mentioned in my previous commit. An interface keeps both logically together. With PHP 5.4 further deduplication could be done via Traits.
* remove duplicate plugin code for syntax pluginsAndreas Gohr2014-01-07
| | | | | | | | | | This makes Doku_Parser_Mode inherit from DokuWiki_Plugin which allows for the removal of a bunch of duplicate code form DokuWiki_Syntax_Plugin. This makes the code easier to maintain and makes sure all DokuWiki plugins are actual instances of DokuWiki_Plugin. However this adds a bunch of functions to the "normal" parser modes that don't need them which could have performance/RAM implications.
* Fix CodeSniffer whitespace violoationsMatt Perry2013-09-10
| | | | | Removed extraneous whitespace to eliminate errors reported by the Squiz.WhiteSpace.SuperfluousWhitespace sniff.
* Fix CodeSniffer violationsMatt Perry2013-08-22
| | | | Change indentation to ensure code confirms to CodeSniffer rules.
* set $msg argument of loadHelper() default to true.Klap-in2013-01-27
|
* Reformat last bottom end of the syntax plugin fileKlap-in2013-01-26
|
* Added loadHelper() to DokuWiki_Syntax_Plugin.Klap-in2013-01-26
|
* some coding style improvementsDominik Eckelmann2012-11-29
| | | | | | - removed some dead/unused code - fixed phpdoc - added typing on methods
* Initialize more variables and test if others are set (no functional changes)Michael Hamann2012-07-28
|
* Fix inconsistent return values in the indexer and in getInfo()Michael Hamann2012-07-28
|
* Fixed and extended PHPDoc comments and added additional @var commentsMichael Hamann2012-07-28
|
* Language files can now be customized in the conf/ directoryMichael Hamann2010-12-29
| | | | | | As suggested by Robin Getz locale .txt files can now be duplicated and changed in the conf/lang/ directory and conf/plugin_lang/$plugin/ directory for plugins.
* Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3Michael Hamann2010-11-29
| | | | | | As of VIM 7.3 it is no longer possible to specify the encoding in the modeline. This gives an error message whenever such a file is opened, thus this commit removes the enc setting from the modeline.
* Update syntax plugin base class (DOOM DO-OOM)Adrian Lang2010-03-29
|
* Allow plugins to specify that they have to be instantiatedAdrian Lang2010-03-29
| | | | | | | | Plugins may return false in isSingleton to let plugin_load return a new instance every time it is called. Renderer plugins are not loaded with $new set to true, but instead specify themself that they are not singletons. This behaviour allows the odt renderer to keep working (see #1598).
* plugin related autoloadingAndreas Gohr2010-02-01
| | | | | This patch moved the place where DOKU_PLUGIN is defined. It no longer can be set from a normal config (only via preload)
* More flexible plugin packages FS#1746Andreas Gohr2009-11-11
| | | | | | Ignore-this: 252bb5a42965ed045221c0544136aa62 darcs-hash:20091111203437-7ad00-86f06d842b3bec22641a637cb09dbc666a42ca2d.gz
* Fix for FS#1598 - allow a plugin to be a singleton if it so desiresChris Smith2009-02-11
| | | | | | | | | | | | | | | DokuWiki typically instantiates a plugin once and reuses that instance whenever the plugin is required. However on some occasions DokuWiki will request a new instantiation of a plugin. This particularly applies to render plugins. This patch allows a plugin to force DokuWiki to reuse the existing instance. If a plugin wishes to only be instantiated once then it should implement an "isSingleton()" method and that method should return boolean true. darcs-hash:20090211143520-f07c6-5c1a33dbed55f0b196a204745fe3139f3c7c0aa9.gz
* parser: put match on the call stackpierre.spring2008-10-22
| | | | darcs-hash:20081022140209-c07ef-c4d27f3c581ee6ee7cedb886f9e5b2675503b817.gz
* syntax plugin match getter and setterpierre.spring2008-08-29
| | | | darcs-hash:20080829125828-c07ef-b27cbac1f23e313572952ea8f1172fbd88f60493.gz
* prevent error on buggy syntax plugin FS#1218Andreas Gohr2008-01-19
| | | | darcs-hash:20080118234120-7ad00-01defe99eda2568ef91acc679a35b25e8bdc40ed.gz
* moved plugin base class to incAndreas Gohr2007-01-20
| | | | darcs-hash:20070119233350-7ad00-a8ae733093693a55c2566f5ee698a7b4aa3a833a.gz
* metadata update to support both persistent and non-persistent metadatachris2006-11-26
| | | | | | | | | | | | | | | | Key changes: - metadata stored on disk in two arrays, 'current' & 'persistent' - p_set_metadata has an additional parameter, $persistent, which defaults to true - metadata set within the renderer defaults to non-persistent - new event hook, PARSER_METADATA_RENDER, which wraps around metadata rendering process. For full details of this event refer to the event list documentation at splitbrain. The patch includes automatic conversion of metadata in current form to the new format For more details also see http://www.freelists.org/archives/dokuwiki/11-2006/msg00221.html and any follow-up messages. darcs-hash:20061126152144-9b6ab-a4e40c221e0274b13da07dc2fc1d2100f5f3a50e.gz
* fix bug#956 (also sp. in pluginutils)chris2006-10-27
| | | | darcs-hash:20061027004117-9b6ab-b7eda08e246e942a1ca4841b94abeda4c2ed722c.gz
* parser caching updatechris2006-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch primarily updates p_cached_xhtml() and p_cached_instructions() to allow their caching logic to be surrounded by an event trigger. p_cached_xhtml() has been rewritten as the more general p_cached_output() to support other render output formats besides 'xhtml'. All calls to p_cached_xhtml() have been changed to refer to the new function. New event: name: PARSER_CACHE_USE data: cache object (see below) action: determine if cache file can be used preventable: yes result: bool, true to use cache file, false otherwise Cache operations have been generalised in a new class, cache, extended to cache_parser, cache_renderer & cache_instructions. Details can be found in inc/cache.php For handling of above event, key properties are: - page, if present the wiki page id, may not always be present, e.g. when called for locale xhtml files - file, source file - mode, renderer mode (e.g. 'xhtml') or 'i' for instructions Other changes: - cache class counts cache hits against attempts, results are stored in {cache_dir}/cache_stats.txt - adds metadata dependency to renderer page cache - replaces purgefile dependency for renderer cache with metadata 'relation references' (internal link) dependency for wiki pages only darcs-hash:20060911021418-9b6ab-19601ed194b8c8e45236ab72c3e23d78bf777e6c.gz
* improvements to common plugin i/fchris2006-04-30
| | | | | | | | | | | | update comments to work with DokuWiki's auto generated API docs. slight restructure of configuration functions and comments - loadConfig now loads plugin config settings into $conf['plugin'][<plugin_name>] & $this->conf. These are aliases ensuring only one copy is stored. - readDefaultSettings() reads the plugin's conf/default.php darcs-hash:20060430152308-9b6ab-9ec53e79ce5b07405acb84d19d81df9dd609612e.gz
* Bug#680chris2006-04-10
| | | | | | | Update default plugins to ensure they exit immediately if not called from within Dokuwiki darcs-hash:20060409233841-9b6ab-555e4fced756849a5d7b9de6e4aaaea24c6da3ae.gz
* methods for loading config variables in syntax and amin pluginsEsther Brunner2006-03-22
| | | | darcs-hash:20060322110832-283c4-d8e56c241f8a34827f1c188c4db7162ef658e010.gz
* add localisation methods to syntax plugin base classchris2005-09-08
| | | | darcs-hash:20050908000225-50fdc-abc9e505bc9510e309ae061b995bbfbfd1a97b01.gz
* syntax_plugin base class update, change render param name from $mode to $formatchris2005-08-13
| | | | darcs-hash:20050813182407-50fdc-c0facca23432b25c0773dd2a8a6c0772c48ee8b7.gz
* plugin tweaks, info plugin fixesAndreas Gohr2005-08-03
| | | | darcs-hash:20050803180226-7ad00-7bce1982ed6589511ce38e2e4e5e4cdf8640a0ae.gz
* support for plugin subfolders added - plugins/[name]/[type]/[file].phpchris2005-08-02
| | | | darcs-hash:20050802191421-50fdc-abf82fcb52dfabd74b7119f2e6a53ea590bb1d90.gz
* syntax plugin class prototypes : fixes to previous updatechris2005-08-02
| | | | darcs-hash:20050802005846-50fdc-9e5ec3b31966b308543d5a16da10c1af22489553.gz
* syntax plugin class update: add getAllowedTypes() method (compatible with ↵chris2005-07-28
| | | | | | plugins written prior to the patch, although they should be updated!) darcs-hash:20050728005720-50fdc-e384bbca7c4f334659e19bedfd675621b7989c80.gz
* plugin info addedandi2005-06-26
| | | | | | | | Each plugin now needs to return some infos about it self. This allows to display a list of installed plugins using the info plugin. darcs-hash:20050626151617-9977f-0be6e15b32c35b23967e509b0057a00226df150c.gz
* paragraphtypes for syntax pluginsandi2005-06-26
| | | | darcs-hash:20050626111513-9977f-5b317b14c9544a0c0a637d21816542d394e6606f.gz
* directory layout cleanup !IMPORTANTandi2005-06-05
This patch changes the directory structure of dokuwiki as suggested in http://www.freelists.org/archives/dokuwiki/06-2005/msg00045.html As the changes.log is not managed through darcs you need to move it your self to the new location in data/changes.log I think I modified the code at all nessessary places, but I may have forgotten a few things. darcs-hash:20050605103842-9977f-af20f63c1d604888375d175d89ac6bd71566d47d.gz