summaryrefslogtreecommitdiff
path: root/inc/parser/handler.php
Commit message (Collapse)AuthorAge
* update header test cases 20060526Ben Coburn2006-05-26
| | | | | | | Also resolves a small p_close anomaly introduced when section edits were given their own instruction. darcs-hash:20060526170229-05dcb-9509e939b923fe966b901fe5d90ba499828a56c1.gz
* decouple section edit from header in rendererBen Coburn2006-05-22
| | | | | | | | | | | | | | | | | | | | This patch achieves a partial decoupling of the section edit buttons from the header syntax. A new 'section_edit' instruction is added to the instruction list. The default set of these instructions is generated from the header handler and the _finalize function. A generic 'section_edit' renderer is now part of the renderer. To rewrite the section semantics, add, or remove section edit buttons the header handler and renderer no longer need to be modified. Changes can be dynamically made to the section edit buttons through the 'PARSER_HANDLER_DONE' action event. An action plugin that registers this event can then modify the calls list of the handler object before it is rendered. In short, this patch makes it possible to change the behavior of the section edit buttons without having to change unrelated code. This patch should be entirely transparent to DokuWiki users and cleanly written plugins. darcs-hash:20060522060004-05dcb-8e6b5215e1b610877f126ca0b9e1e5bc21cc6469.gz
* metadata hnalding updates, header fixesAndreas Gohr2006-05-07
| | | | | | | | This removes the meta instruction again in favour of the new meta renderer. Most tests work now again, a few tweaks were done on the header handler to render certain headers as it did in earlier versions. darcs-hash:20060507153113-7ad00-bd299fbe1762482c72d109f9bca776f12bcea7c8.gz
* event system revisionchris2006-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a major revision of DokuWiki's event system. There are changes to class names, function names, function parameters and their order and event names. For action plugin writers the following changes are important: - <event_name> is no longer signalled, only <event_name>_BEFORE and <event_name>_AFTER. - note the case change for _BEFORE and _AFTER - calling stopPropagation while processing a _BEFORE signal no longer prevents an _AFTER signal. The events _continue value is reset before the _AFTER signal is made. - events have a new readonly property, canPreventDefault. This lets the event handling hook know whether or not the event honours preventDefault calls. - parameters have changed for the register_hook method, parameters are now $event_name, $advise (can be 'BEFORE' or 'AFTER') $object $method $param (this parameter is now optional) - parameter order has changed for the hook event handler callback functions &$event $param (can now be left off) Event names have changed, they are now structured <dokuwiki name>_<event data name>_<action_name or state if no action> DOKUWIKI_START darcs-hash:20060424220152-9b6ab-00e366288f7ec8a85b85dc83694a5f43a07aa082.gz
* event HANDLER_FINALISEDchris2006-04-14
| | | | | | | | | | | | | | | This event is advisory only. Event data is the handler object. There is no default action to prevent. The event is signalled by the handler during its finalisation of the instruction list. At the time of signalling the instruction list is complete except for three instrucitons, meta, document_start & document_end. Syntax plugins could register for this event to finalise processing of their data knowing it is complete, e.g. an alternate footnote plugin. darcs-hash:20060414201101-9b6ab-eba2d096ed3b82e1ec6b24ee90caaa9849f16093.gz
* feed aggregation revampedAndreas Gohr2006-04-14
| | | | | | Feeds are now parsed with SimplePie. The feed syntax was enhanced darcs-hash:20060414110047-7ad00-6dd4b96845baab8683a2f837d6ad6fcb2fd53131.gz
* even faster header parsing using strspnAndreas Gohr2006-04-12
| | | | darcs-hash:20060412184125-7ad00-e51f8d531bf3011d230f62cb99fd18de8f150c41.gz
* reverted method to determine the header levelAndreas Gohr2006-04-10
| | | | darcs-hash:20060410194333-7ad00-abb8bc33f647ccd8587edbcc151bc60895dd3ae0.gz
* Parser Update:chris2006-04-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - revisions to header class and section handling header pattern simplified header class now writes section open and close instructions section call writer removed check for and update meta['first_header'] if required (see below) - meta instruction added written by _finalize to front of instruction stack holds first header information plugins can now write first header information, or other page meta information to this data structure. - get_first_heading updated to make use of meta['first_header'] - plugin instruction structure changed to include lexer state in the data portion of the instruction. OLD INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$pos), $pos) NEW INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$state), $pos) - block handler/call writer update to better handle plugin PTypes 'block' & 'stack'. Lexer states are mapped as follows: DOKU_LEXER_ENTER, DOKU_LEXER_SPECIAL : block_open, stack_open DOKU_LEXER_EXIT, DOKU_LEXER_SPECIAL : block_close, stack_close DOKU_LEXER_MATCHED, DOKU_LEXER_UNMATCHED : plugin must handle <p> Plugin writers can now use these PTypes as intended ! darcs-hash:20060409214958-9b6ab-cd2cef97a6a2521e3a02175075b8ff4648035f69.gz
* removed deprecated TOC codeAndreas Gohr2006-02-24
| | | | darcs-hash:20060224151221-7ad00-314d411cb22d2cd59079751f31cf4b4c49a7f0b6.gz
* some TOC fixesAndreas Gohr2006-02-19
| | | | darcs-hash:20060219164726-7ad00-eb637e1db83e2f3b6c3629da18214b6587590b24.gz
* create unique IDs for sectionsAndreas Gohr2006-02-19
| | | | | | | | | | | | | | | | | | | | This patch finally completes the support for unique section IDs. To achive this the mechanism how the TOC is build was changed. The TOC now is build in the renderer only. Currently the TOC will be rendered in the end_document function and is then prepended to the doc. This should ensure compatibility with the rest of the code. Adding support for separating the TOC from the page should now be a simpler task in the future. TODO: - Update base class - remove commented old TOC code - make sure no other parts of the code use any of the old TOC code darcs-hash:20060218230744-7ad00-40c5463d93f8ae1c543fb4fed747b2047b4c1302.gz
* file cleanupsAndreas Gohr2006-02-17
| | | | | | | | | | This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
* get_tests_running_1hfuecks2005-11-07
| | | | darcs-hash:20051106233800-e96b6-90328f1b6cc5c8b25c6e02f113cf80475789d297.gz
* Table Syntax fixes #280 #591Andreas Gohr2005-11-03
| | | | darcs-hash:20051103162630-6e07b-21520008f556114f8273307e7d6d33795488b1d2.gz
* more test fixes (down to 55)Andreas Gohr2005-10-23
| | | | darcs-hash:20051022220320-7ad00-ada9d82ad5fdc670cfecc0f3fbdc50f6ed7fc036.gz
* allow dots in interwiki namesRobby Cornelissen2005-09-30
| | | | darcs-hash:20050930155249-0fef0-16280e1c28947a2604e04fb3311b97f207b6234a.gz
* allow empty interwikilinksKai Poggensee2005-09-22
| | | | | | | This patch changes the last quantifier in interwiki regexp to "*", allowing constructs like "MyWiki>". darcs-hash:20050922165958-5de9f-912efa15d90a109a2e02a74d14e0fa4de809b963.gz
* $conf['toptoclevel'] specifying topmost level of TOCjoe.lapp2005-09-17
| | | | | | Particularly useful with $conf['useheading'] darcs-hash:20050917041821-36b45-4187b687b6ade759035d0d695eb715f9192c1a7e.gz
* Added media 'nolink' and 'direct' optionsjoe.lapp2005-09-15
| | | | | | {{image.jpg?nolink}} darcs-hash:20050915032348-36b45-f298b21de05001cd9a56b4859bf265079b57bf69.gz
* Changed pluginloading to use referencesAndreas Gohr2005-07-30
| | | | | | | | | This patch allows the use of $this in syntax plugins to set internal variables and let them remain between handle and render calls. Even when it is possible now to use this method you should exchange data betwenn handler and render calls by using the $data array only. darcs-hash:20050730215156-7ad00-69ea79859360d9902533633395de3e1b677f6e46.gz
* handle all RFC 1738 compliable schemes in external linksAndreas Gohr2005-07-28
| | | | | | | | | | | | | | RFC 1738 states: Scheme names consist of a sequence of characters. The lower case letters "a"--"z", digits, and the characters plus ("+"), period ("."), and hyphen ("-") are allowed. DokuWiki did only recognize alphanumeric characters, this patch adds periods, plus and hyphen. Thanks to "ytrewq1" for pointing that out. darcs-hash:20050728180447-7ad00-dc0d4b8e9309d571715d6c490d1505bb2666c786.gz
* Doku_Handler->plugin() method fix, incorrectly named handler objectchris2005-07-15
| | | | darcs-hash:20050714223751-50fdc-ebc6c8ff03e23d2edcd974f51b063f77f9fd4458.gz
* updated GeSHi to 1.0.7andi2005-07-14
| | | | darcs-hash:20050714193336-9977f-c0d5b8e6db9f92720b1f8b539fdef1f04823f5f7.gz
* relaxed header handling #441andi2005-07-04
| | | | | | | The header handler now doesn't care for the number of closing header markers. The following lines are all detected as h2 headers: darcs-hash:20050704184955-9977f-bcf18ece3b66b48638aeb5588613c0283eda4584.gz
* Corrects to parser for <html>, <php> and list itemschris2005-06-27
| | | | | | | | | This patch moves handling of <html> and <php> tags to the front end of the parser allowing correct processing of the replacement <file> tag if html or php processing is disabled. It also adds listcontent_open and listcontent_close to the array of blocks not permitted within paragraps and removes html & php from the same array. darcs-hash:20050627201807-50fdc-5236124fd13a1ecc6b26f0a0b52a434ab01cee41.gz
* fix for paragraphtypes in pluginsandi2005-06-26
| | | | darcs-hash:20050626145055-9977f-464699ca4a1dc85c5664de728217fbf1b3d90fce.gz
* paragraphtypes for syntax pluginsandi2005-06-26
| | | | darcs-hash:20050626111513-9977f-5b317b14c9544a0c0a637d21816542d394e6606f.gz
* small fixes for linkparsing #337 #339andi2005-05-20
| | | | darcs-hash:20050520150702-9977f-a2ef5264ff38a5225521c83eeaf85759c92a37bb.gz
* first attempt of syntax pluginsandi2005-05-19
| | | | | | | | | | | | | | | | The first version of the new plugin system. Syntax plugins only yet. A very simple example plugin called info (doing nothig useful yet) is included. Missing Features - Doku_Block_Handler needs work (doesn't honur plugins yet) - there is no way to specify the order of plugins and other modes yet - useful output from the info plugin - bug testing and fixing - code cleanup - documentation darcs-hash:20050519201009-9977f-f793dbfc6a39d8a9643b610927d93cd3288bdd6b.gz
* local links added #297andi2005-05-04
| | | | darcs-hash:20050504192203-9977f-004cc04b0753fc5d36d4515519c54039e73e77de.gz
* ~~NOCACHE~~ addedandi2005-05-01
| | | | darcs-hash:20050501193908-9977f-e65b9b9bd123efaccc167f2e1ad9a1d4f51ba681.gz
* more cleanupandi2005-04-29
| | | | darcs-hash:20050429205436-9977f-762f3ded6f93cfb3e068f3acdc1bb80690ad658b.gz
* fix for RSS feed syntax #293andi2005-04-29
| | | | darcs-hash:20050429100017-9977f-606a82e63f7883de940d816c6609f8823757e484.gz
* more interwiki fixes #273andi2005-04-26
| | | | darcs-hash:20050426181358-9977f-3b12ff92c5671e6703d67ad518379961042da0c3.gz
* more freedom for interwiki links #273andi2005-04-25
| | | | darcs-hash:20050425184444-9977f-4c4d9abe6558206c71aec3bd2a5c924b2b8ffc03.gz
* fixed TOC bugandi2005-04-24
| | | | darcs-hash:20050424182822-9977f-31a1b997b1cf6c89d6d4d4b97b55fdae42c66b22.gz
* finally valid XHTML againandi2005-04-24
| | | | darcs-hash:20050424132922-9977f-5e9acbeae431ca1c605169829e580bf094a09ef9.gz
* fixed paragraph controlandi2005-04-22
| | | | darcs-hash:20050422111330-9977f-49c1d37044084e1b0fd3d379f77df55d1c1557eb.gz
* removed magical __andi2005-04-22
| | | | | | | | The PHP manual states "PHP reserves all function names starting with __ as magical. It is recommended that you do not use function names with __ in PHP unless you want some documented magic functionality." (http://www.php.net/manual/en/language.oop.php) I renamed all functions starting with __ to _ darcs-hash:20050422101253-9977f-79b7cb3ac3b5b8287073ab0bc7d9e78f115b4a58.gz
* fixed email links #259andi2005-04-18
| | | | darcs-hash:20050418184011-9977f-acd3a6583e08ce3732af5ffc4fdc3027e284173e.gz
* new parser: more hacking, RSS readdedandi2005-04-15
| | | | darcs-hash:20050415204735-9977f-613d9b007452d538dcb8fce4ade5cbec389c4415.gz
* new parser: images, added flash support #154andi2005-04-15
| | | | darcs-hash:20050415121416-9977f-583ee34659f70017fec4f8b8a4de327c5b1631e4.gz
* removed closing php tag for includesandi2005-04-13
| | | | darcs-hash:20050413175338-9977f-c969db6f86df5df175db9a39b4fabb9f072f8f67.gz
* new parser: code for section editing addedandi2005-04-10
| | | | darcs-hash:20050410175916-9977f-92bd9f70d66160b0f6188f42870d12b2e0964077.gz
* Mods for wiki syntax convertersHarry Fuecks2005-04-05
| | | | darcs-hash:20050405084745-56ad0-d350083b623653dcd7fc77cd527571c7af1e34dd.gz
* new parser: correct pageresolving for internal linksandi2005-04-02
| | | | darcs-hash:20050402154829-9977f-f9576f4bafed9cbc9c15f14a41ad3410ec5c5970.gz
* new parser added (define DOKU_USENEWPARSER to use it)andi2005-03-31
darcs-hash:20050331145749-9977f-f011ea6c65a278197e9087b685c635c60a204cd2.gz