summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
Commit message (Collapse)AuthorAge
* phpdocs, reformattingGerrit Uitslag2015-06-30
|
* switched geshi higlighter to composer based repositoryAndreas Gohr2015-05-15
|
* Remove error supression for file_exists()Andreas Gohr2015-01-07
| | | | | | | In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PHP 5.3 now, there's no need to supress any error here anymore. This might even give a minor performance boost.
* 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
| * Merge pull request #708 from splitbrain/overridablelangstringsAndreas Gohr2014-09-29
| |\ | | | | | | extend lang file cascade, so users can override some lang strings
| | * phpdocs parserutilsGerrit Uitslag2014-09-28
| | |
| * | Merge remote-tracking branch master into revisionslisps2014-09-26
| |\|
| * | Merge remote-tracking branch 'remotes/origin/master' into revisions_locallisps2014-03-19
| |\ \
| * \ \ Merge remote-tracking branch 'origin/diff_navigation' into revisionslisps2014-02-17
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: inc/parser/xhtml.php
| * | | | change behavior only on date_atlisps2013-11-25
| | | | |
| * | | | remove property rev from xhtml.phplisps2013-11-22
| | | | | | | | | | | | | | | | | | | | changed variable name $create_time to $modified_time
| * | | | add parameter at($DATE_AT) and mind revisionslisps2013-11-21
| | | | |
* | | | | PHPDocs and some improvementsGerrit Uitslag2014-10-02
| | | | |
* | | | | more phpdocs and minor checkGerrit Uitslag2014-10-01
| | | | |
* | | | | Many PHPDocs, some unused and dyn declared varsGerrit Uitslag2014-10-01
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | many PHPDocs some unused variables some dynamically declared variables declared
* | | | Merge pull request #618 from splitbrain/cache_and_cachetimeAndreas Gohr2014-05-04
|\ \ \ \ | | | | | | | | | | Fix longstanding issue with cache class & cachetime setting
| * | | | adjust logic of caching comments for _nocacheChristopher Smith2014-03-17
| | |_|/ | |/| |
* / | | Fix a couple of issues with PR#571Christopher Smith2014-03-13
|/ / / | | | | | | | | | | | | | | | | | | | | | 1. renderer validity checks were too stringent for plugins, format should only need to be checked when mode is 'xhtml' 2. E_USER_WARNING message should now be obsolete, its previous use was to generate a warning when 'xhtml' rendering failed. PR#571 insures 'xhtml' rendering always succeeds.
* | | resolve scrutinizer issue, is_a type hint doesn't allow nullChristopher Smith2014-03-02
| | |
* | | remove rendundant msgChristopher Smith2014-02-28
| | |
* | | revert back to trigger errorChristopher Smith2014-02-26
| | |
* | | change to an Exception and expect itChristopher Smith2014-02-25
| | |
* | | code cleaning - add some bracesChristopher Smith2014-02-25
| | |
* | | rework p_get_renderer() for use with autoloading bundled renderersChristopher Smith2014-02-25
| | |
* | | add renderers to autoladerChristopher Smith2014-02-25
| | |
* | | remove reference operator from p_get_renderer() declaration, not required ↵Christopher Smith2014-02-25
| | | | | | | | | | | | for php5
* | | if configured renderer is not found, try to fallback to a bundled rendererChristopher Smith2014-02-25
| |/ |/|
* | php doc blockAndreas Gohr2014-01-08
|/
* refactor to avoid php notice and match structure of rest of p_get_renderer()Christopher Smith2013-10-16
|
* fix php strict and remove double duplicated code of renderer plugin loaderGerrit Uitslag2013-10-15
|
* removed a bunch of functions which were deprecated in 2005/2006Anika Henke2013-02-18
|
* Merge pull request #121 from splitbrain/strictAndreas Gohr2012-11-04
|\ | | | | fix E_STRICT errors FS#2427
| * fix E_STRICT errors FS#2427Andreas Gohr2012-07-28
| | | | | | | | | | | | | | | | This commit fixes all E_STRICT messages shown when running the test suite. There might be more problems not covered by tests, yet. For compatibility reasons with plugins, E_STRICT errors are still supressed.
* | only execute valid instructions FS#2432Andreas Gohr2012-07-28
| |
* | Be more careful when setting metadata values FS#2514Michael Hamann2012-07-28
|/ | | | | This fixes a warning when setting $meta['relation']['firstimage'] using p_set_metadata.
* Initialize more variables and test if others are set (no functional changes)Michael Hamann2012-07-28
|
* Fixed and extended PHPDoc comments and added additional @var commentsMichael Hamann2012-07-28
|
* Remove unused variablesMichael Hamann2012-07-28
|
* avoid warnings when instructions with no parameters are renderedAndreas Gohr2012-07-28
| | | | see http://irc.dokuwiki.org/index.php?d=2012-07-28#msg403531
* Disable some parser and renderer caches during tests FS#2564Michael Hamann2012-07-25
| | | | | | | | This disables some caches which use static variables in order to prevent parsing or rendering of the same page more than once during a run and also disables the cache of parser modes. This means we can no longer test this behavior but at least it fixes syntax plugin tests and tests which change pages in order to test certain caching behaviors.
* Remove useless condition in p_get_metadata and add explanationMichael Hamann2012-07-08
|
* another input wrapper fixAndreas Gohr2012-06-24
|
* Add check for existing renderer classLucas2011-07-10
|
* Add missing return value to p_set_metadataMichael Hamann2011-06-08
|
* Add more render/cache logic to the metadata codeMichael Hamann2011-05-08
| | | | | | | | | | | | | | | | | | | | This adds a new rendering limit of currently 5 pages to the p_get_metadata function. This means that in one request not more than 3 pages will be parsed/rendered. Pages for which the cache can be used aren't counted. This should make the new cache modes safe to use and should provide backwards compatibility while keeping the advantage of rendering metadata on demand (i.e. imagine one included page out of 10 is updated, then the metadata for that page can be rendered, but when you request a purge of the cache not 10 pages are rendered). In this commit most of the changes to the p_get_first_heading function are reverted and the title index is no longer used. This makes the first heading functionality no longer depends on the search index of DokuWiki. Maybe it can be added again later when the indexer provides a proper API for getting metadata values for all or selected pages. The performance of the p_get_first_heading function should be almost back to the performance in Anteater as the simple cache of p_get_metadata is used and also the limit of p_get_metadata is of course applied.
* Change when metadata is rendered - only when really neededMichael Hamann2011-05-08
| | | | | | | | | | | | | | | | | | | | | | This changes the cache logic for metadata. It introduces a new mode that tries to avoid rendering the page again for simple requests but still updates the metadata when the page has been changed (but not when the cache timeout has been reached or purge is used). It simply compares the time of the last rendering with the last modified time of the page. The old boolean $render parameter has been changed into an int with three possible values. Compatibility for the old parameter is provided using a check with is_numeric using the following mapping: - false is still don't render (0 is the new value for that) - true is using that new render logic which means that many plugins will still work unchanged even if they request a lot of data using $render=true (1 is the new value for that providing full compatibility in the case 1 has been used instead of true) The default value for p_get_first_heading is now that new simple cache logic, the default value for getting metadata is the cache logic which should be used with care but is the only way to request (rendered) metadata that can change because of plugin installations or upgrades.
* Fix p_get_first_heading for when the search index is emptyMichael Hamann2011-04-26
| | | | | | When the search index is empty, there was a warning and no headings were displayed. Now the headings are displayed and there is no warning anymore.
* p_get_metadata: show the save error message only when metadata has been changedMichael Hamann2011-02-06
|
* Allow p_set_metadata during rendering, test cases included. FS#1827Michael Hamann2011-02-06
|
* Add define for metadata usage limit in p_get_first_headingMichael Hamann2011-01-10
| | | | | | | | | This commit introduces a new define P_GET_FIRST_HEADING_METADATA_LIMIT that can be set in preload.php in order to change the limit for how many pages the first heading shall be loaded from metadata in p_get_first_heading. Changing this is probably most interesting for Wikis with a lot of pages where loading the title index costs a significant amount of time and memory.