| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Removed extraneous whitespace to eliminate errors reported by the
Squiz.WhiteSpace.SuperfluousWhitespace sniff.
|
|
|
|
| |
Change indentation to ensure code confirms to CodeSniffer rules.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- removed some dead/unused code
- fixed phpdoc
- added typing on methods
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
This patch moved the place where DOKU_PLUGIN is defined. It no longer
can be set from a normal config (only via preload)
|
|
|
|
|
|
| |
Ignore-this: 252bb5a42965ed045221c0544136aa62
darcs-hash:20091111203437-7ad00-86f06d842b3bec22641a637cb09dbc666a42ca2d.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20081022140209-c07ef-c4d27f3c581ee6ee7cedb886f9e5b2675503b817.gz
|
|
|
|
| |
darcs-hash:20080829125828-c07ef-b27cbac1f23e313572952ea8f1172fbd88f60493.gz
|
|
|
|
| |
darcs-hash:20080118234120-7ad00-01defe99eda2568ef91acc679a35b25e8bdc40ed.gz
|
|
|
|
| |
darcs-hash:20070119233350-7ad00-a8ae733093693a55c2566f5ee698a7b4aa3a833a.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20061027004117-9b6ab-b7eda08e246e942a1ca4841b94abeda4c2ed722c.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Update default plugins to ensure they exit immediately
if not called from within Dokuwiki
darcs-hash:20060409233841-9b6ab-555e4fced756849a5d7b9de6e4aaaea24c6da3ae.gz
|
|
|
|
| |
darcs-hash:20060322110832-283c4-d8e56c241f8a34827f1c188c4db7162ef658e010.gz
|
|
|
|
| |
darcs-hash:20050908000225-50fdc-abc9e505bc9510e309ae061b995bbfbfd1a97b01.gz
|
|
|
|
| |
darcs-hash:20050813182407-50fdc-c0facca23432b25c0773dd2a8a6c0772c48ee8b7.gz
|
|
|
|
| |
darcs-hash:20050803180226-7ad00-7bce1982ed6589511ce38e2e4e5e4cdf8640a0ae.gz
|
|
|
|
| |
darcs-hash:20050802191421-50fdc-abf82fcb52dfabd74b7119f2e6a53ea590bb1d90.gz
|
|
|
|
| |
darcs-hash:20050802005846-50fdc-9e5ec3b31966b308543d5a16da10c1af22489553.gz
|
|
|
|
|
|
| |
plugins written prior to the patch, although they should be updated!)
darcs-hash:20050728005720-50fdc-e384bbca7c4f334659e19bedfd675621b7989c80.gz
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20050626111513-9977f-5b317b14c9544a0c0a637d21816542d394e6606f.gz
|
|
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
|