Commit Graph

94 Commits

Author SHA1 Message Date
Andreas Gohr f51673e590 fix listing of plugin components
Plugins may have one main component of a type or they might have
multiple of the same type in a subdirectory.

Sometimes they may have both. This is often the case for organically
grown plugin, commonly with helper classes where a helper.php exists
first only to be extended by helper/*.php files later.

This patch fixes the listing of plugin(components) by type in the plugin
controller.

It also adjusts bin/plugin.php to handle plugin CLI components.
2024-03-27 14:08:16 +01:00
fiwswe 1b2deed915 Use str_starts_with/str_ends_with 2023-09-15 16:29:00 +02:00
Andreas Gohr d4f83172d9 code style: line breaks 2023-08-31 22:44:40 +02:00
Andreas Gohr 90fb952c4c code style: operator spacing 2023-08-31 22:38:07 +02:00
Andreas Gohr 26dfc2323f Rector to rename print to echo calls 2023-08-31 22:00:27 +02:00
Andreas Gohr 177d6836e2 coding style: control flow whitespaces 2023-08-31 14:22:35 +02:00
Andreas Gohr dccd6b2bba coding style: function call spacing 2023-08-30 18:41:45 +02:00
Andreas Gohr d868eb89f1 codestyle adjustments: function declaration braces/spaces 2023-08-30 17:09:14 +02:00
Andreas Gohr 8c7c53b032 codestyle adjustments: class declaration braces 2023-08-30 17:05:28 +02:00
Andreas Gohr b1f206e1d4 Apply rector fixes to bin and toplevel 2023-08-30 14:48:22 +02:00
Andreas Gohr 7bbc0dcadf do no load disabled plugins in /bin/plugin.php 2023-08-24 14:09:51 +02:00
Andreas Gohr 2cd6cc0aee move resolvers into File namespace 2022-01-02 11:22:30 +01:00
Andreas Gohr 30903c8d50 Merge branch 'master' into refactorResolving
* master: (257 commits)
  add unit test for namespace exclusion in ft_pageLookup()
  exclude ns in pagelook ups
  translation update
  Obsolete attribute
  translation update
  translation update
  translation update
  translation update
  translation update
  Add missing `;` causing syntax error in js.php
  Run tests on PHP 8.0 now
  translation update
  translation update
  test: run test in separate process in case of error
  test: fix two tests on PHP8
  style: fix test code style
  fix method handling for RPC_CALL_ADD
  destroy the JPEGMeta object after use
  upgrade simplepie to 1.5.6
  dwpage: output meta data as JSON
  ...
2021-04-05 11:50:40 +02:00
Andreas Gohr 8c6be208dc replace deprecated function calls
Replaces the use of resolve_pageid() and resolve_mediaid() with the
proper class invocations
2021-04-05 11:49:45 +02:00
Andreas Gohr 8d670f35f5 dwpage: output meta data as JSON
json shows the same nested data but is easier to process by other tools
2021-02-16 21:37:20 +01:00
Andreas Gohr 3fe0184449 dwpage: rename gmeta into getmeta 2021-02-16 21:12:03 +01:00
Robin Getz 2c23659d6e dwpage.php: add an option to get metadata
This adds an option to ./bin/dwpage.php, to display metadata about a
page. This is useful in maintenance shell scripts, and debugging plugins.
There is no ability to write metadata, only read them.

./bin/dwpage.php -u <user> gmeta [page] <meta tag>

where <meta tag> can be "date modified" (in quotes) or "last_change date"
an empty <meta tag> returns all metadata.

Signed-off-by: Robin Getz <robin.getz@analog.com>
2021-01-21 14:21:08 -05:00
Andreas Gohr d267a3cb9d
Merge pull request #3115 from moisesbr-dw/sort-with-collator
Sort with collator
2020-08-26 10:06:20 +02:00
Moisés Braga Ribeiro 0489c64b7d Changes according to revisions in https://github.com/moisesbr-dw/dokuwiki/pull/2
Many minor details and use of Sort::xyz() instead of intl_xyz() in files outside the "inc" folder.
2020-08-16 18:29:42 -03:00
Phy cbfa4829d9
use envvars in shebang 2020-06-13 18:41:58 -04:00
Moisés Braga Ribeiro d00f852337 Command line tool wantedpages.php 2020-05-19 21:26:03 -03:00
Andreas Gohr 8cbc5ee84f replaced deprecated utf8 functions
For now this uses full qualified namespaces, sensible imports may come
later.
2019-06-10 16:12:59 +02:00
Andreas Gohr 3a7140a158 moved plugin controller to Extension namespace 2019-04-20 21:55:27 +02:00
Andreas Gohr e1d9dcc8b4 First go at moving the plugin classes into their own namespace 2019-04-20 21:33:23 +02:00
Andreas Gohr 277113f107 Merge branch 'master' into psr2
* master:
  upgraded JSON class to latest (2006) version
  continue is break in switch
  translation update
  reference existing proper progress gif. fixes #2441
  Fix missing ui-bg_glass_95_fef1ec_1x400.png and be/jquery.ui.datepicker.js for jquery
  removed accidental merges of outdated translations
  Change `const` use to `var` for Safari 9 (on iOS)
  Fix .htaccess files for Apache 2.4 (and 2.2)
  add logic if the server uses unlimited memory settings in is_mem_available()
  removed safemode hack
2018-07-27 15:04:27 +02:00
Alexander Achenbach 21c01779b1 Fix .htaccess files for Apache 2.4 (and 2.2)
Refer to module by suitable file name (mod_*.c).
Test for mod_authz_core.c (instead of mod_authz_host.c) to properly
detect Apache 2.4 and avoid false positive for Apache 2.2.
2018-06-17 16:48:11 +02:00
Andreas Gohr 2b2d0ba933 PSR2 adjustments for bin scripts 2018-06-15 10:28:12 +02:00
Andreas Gohr 7ba28776db typo. capital P for class name 2018-04-05 09:56:20 +02:00
Andreas Gohr efde470282 remove unecessary newline in gittool 2017-12-10 09:16:34 +01:00
Andreas Gohr eb8d789e05 Introducing a new Plugin type: CLI
Now plugins can create their own command line interfaces. They are
executed through a single entry point in bin/plugin.php
2017-11-10 17:48:16 +01:00
Andreas Gohr cbeaa4a047 replace Doku_CLI with splitbrain\phpcli\CLI
It has few more features (like turning down verbosity) and looks nicer
2017-11-10 14:22:02 +01:00
Andreas Gohr 64cebf712e made bin/wantedpage.php more flexible
* results can be sorted by wanted or origin
* second dimension can be skipped
* results should be easier to parse with standard unix tools now
* use proper otpions, not commands
2017-07-28 10:03:33 +02:00
Myron Turner 964efa9c1f using $options->getCmd to retrieve show-pages parameter 2017-07-12 17:41:33 -05:00
Myron Turner d63d2c63ef added option to wantedpages.php to show or not show pages where broken links occur 2017-07-12 17:11:39 -05:00
Myron Turner ffe3602c5b show pages where broken links occur: page_id => broken_link 2017-07-09 22:39:35 -05:00
Werner Flamme/WKDV 6e2d09ae3b Adapt .htaccess files for Apache 2.4 2015-12-07 15:20:20 +01:00
JustinTrouble cb62a664a0 Fixed bug in obtainLock(), where it always fails to verify the lock. This fixes #1019, fixes #1311 2015-11-30 13:55:45 +00:00
Andreas Gohr bf00b3965f fix username handling in dwpage CLI tool. closes #1019 2015-02-09 10:22:12 +01:00
Gerrit Uitslag 8702de7f7e Merge remote-tracking branch 'origin/master' into scrutinizerissues
Conflicts:
	inc/media.php
	inc/plugin.php
	inc/template.php
	lib/plugins/authplain/_test/escaping.test.php
	lib/plugins/syntax.php
2014-12-09 17:26:28 +01:00
Andreas Gohr 47914fdf9a -k requires parameter. fixes #902 2014-10-17 17:25:20 +02:00
Gerrit Uitslag 7e8500eea1 PHPDocs and some improvements 2014-10-02 14:55:24 +02:00
Gerrit Uitslag 42ea7f447f Many PHPDocs, some unused and dyn declared vars
many PHPDocs
some unused variables
some dynamically declared variables declared
2014-10-01 11:30:27 +02:00
Andreas Gohr 1c36b3d86f code reformat 2014-05-16 09:11:15 +02:00
Andreas Gohr e82b082ef3 refactored dwpage.php to new CLI 2014-05-16 09:09:17 +02:00
Andreas Gohr e8bb93a50f refactored bin/wantedpages.php to new CLI interface 2014-03-22 17:23:06 +01:00
Andreas Gohr 352ec8ce2a refactored bin/striplangs.php to new CLI interface 2014-03-22 16:45:54 +01:00
Andreas Gohr b0b7909bdd converted some more CLI tools, minor CLI class updates 2014-03-20 20:55:57 +01:00
Andreas Gohr ae1ce4a68d wrap help texts to fit typial terminal width 2014-03-19 22:56:29 +01:00
Andreas Gohr 9fb664942d converted git tool to new CLI base 2014-03-19 18:23:18 +01:00
Andreas Gohr b0c7084fa9 always fullpath repo dirs 2014-02-14 10:22:25 +01:00