Commit Graph

49 Commits

Author SHA1 Message Date
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 177d6836e2 coding style: control flow whitespaces 2023-08-31 14:22:35 +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 c1482d1c08 codestyle adjustments: function argument spacing 2023-08-30 17:03:06 +02:00
Satoshi Sahara 9d01c1d91a PSR-12 coding style 2020-07-01 19:58:58 +09:00
Andreas Gohr f600e75a7d ignore PSR2 in the old form class
This class needs to be replaced with dokuwiki\Form in the future.
2019-07-14 21:04:31 +02:00
Andreas Gohr aba86f383f visibility fixes
First start at declaring visibilites for methods and properties. Still
missing: the parser/renderer stuff and the plugins
2018-04-27 20:02:24 +02:00
Andreas Gohr b4f2363aa1 remove DOKU_INC checks
There is no need for this check, since these files should not have any
main code that is executed on direct call.

Fixes PSR1.Files.SideEffects.FoundWithSymbols
2018-04-27 14:32:42 +02:00
Andreas Gohr 1534dc5b30 make Doku_Form members public again. fixes #1982
Various plugins access the form members directly currently.
2017-05-25 10:35:14 +02:00
Andreas Gohr 9c9753d6ea replace some var keywords
This should fix some tests on PHP 7.1. The work is far from done, we
still have a lot of variables without proper accessibility defined.
2017-05-12 15:21:20 +02:00
Takamura f50a239b3b I supplemented the existing comments on the methods in which there was not enough information to the standard phpDoc. 2017-03-31 09:33:33 +02:00
Anika Henke ae614416a5 changed all input type=submit buttons to button type=submit button for better stylability 2015-07-12 19:05:43 +01:00
Christopher Smith 26e22ab837 Changes for PHP 7 Compatibility
- replace PHP4 style class constructor function names (based on
  class name) with php 5 __construct()
Also remove some '&' reference operators used with objects
And add some object type hints
2015-05-15 19:03:34 +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 4f0bc4b20d some doc update 2014-05-19 21:27:35 +02:00
Andreas Gohr 3275c5d6fe Merge branch 'master' into diff_navigation
* master: (103 commits)
  Add a basic test case for the cache
  Events: Trigger a warning if the default action is not callable
  Fix caching (make the event callback public again)
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  avoid HTTP image screenshot urls. closes #595
  translation update
  Extension manager: Fix cache extension to be .repo
  adjusted the office type color again
  another instance of empty() where an array key might not exist
  remove placeholder van denied.txt
  updated file icons once more
  removed 'not logged in' text, loginform is shown already
  Revert "added stripped bit to language file"
  fixed index file
  ...

Conflicts:
	inc/html.php
2014-03-14 17:09:29 +01:00
Gerrit Uitslag 5f0071ebcd PHPDocs form 2014-02-18 13:41:13 +01:00
Gerrit Uitslag eeb8f429f3 add disable options to form_makeListboxField. Disable out of range revisions 2014-02-15 17:23:27 +01:00
Andreas Gohr 16ad3fae86 fixed some doc strings 2014-02-14 13:32:24 +01:00
Anika Henke 0d39ad1169 fixed editing of RTL and LTR scripts mix (including a lot of wiki syntax) being a mess
Bi-directionality is generally a huge pain in the arm, browser vendors
only added a few improvements quite recently. This fix only works in
Mozilla and Webkit currently. Affected syntax was links and media and all
opening and closing syntax (e.g. code and del and various plugin syntax).
2013-12-07 20:41:17 +00:00
Tom N Harris f0859d4bbc Input wrapper for html forms 2012-06-28 23:31:31 -04:00
Andreas Gohr 9f09385fc6 do not strip empty form parameters FS#2222 2011-04-17 09:18:10 +02:00
Adrian Lang 9063ec149f Remove trailing whitespace in buildAttributes output 2011-01-12 13:09:23 +01:00
Tom N Harris c277a6bdf6 Deprecate html_attbuild in favor of buildAttributes 2010-10-24 09:55:20 +02:00
Adrian Lang 2f10258ced Add an optional off value to Doku_Form’s checkboxes
Since an unchecked HTML checkbox has no value at all, a hidden field may be
used to specify an off value for the checkbox.
2010-06-15 11:26:52 +02:00
Andreas Gohr 1690534421 first attempt to centralize all include loading
Classes are loaded throug PHP5's class autoloader, all other
includes are just loaded by default. This skips a lot of
require_once calls.

Parser and Plugin stuff isn't handled by the class loader yet.
2010-01-31 19:02:14 +01:00
Adrian Lang 5b75cd1f5c New mail subscription with digest 2010-01-20 10:53:18 +01:00
Andreas Gohr 49eb6e3806 some more coding standard compliance updates 2010-01-15 19:50:13 +01:00
Andreas Gohr b81b193eda changed printForm to getForm and added a print wrapper
Ignore-this: 4b30ebdde6d66e4d502b547fe388c9c

darcs-hash:20091117180558-6e07b-4ea4cb7b71e5300433ce35456192258ebbd2e774.gz
2009-11-17 19:05:58 +01:00
Michael Klier b4033556bb form method should be lowercase and action should be set always
darcs-hash:20091117092114-23886-69852bb75c1a5d630797741c736159b726dfd334.gz
2009-11-17 10:21:14 +01:00
Adrian Lang a0fe6e2802 Always set value parameter of select fields for compatibility with IE
darcs-hash:20091022135906-e4919-33ba1dc139c4f3e9d9dfe873e35ac059b66a7b98.gz
2009-10-22 15:59:06 +02:00
Adrian Lang 804e2f2f68 Change inc/form.php to four space indentation
darcs-hash:20091022120217-e4919-5409e48225e5ff0d8ec3fa5da02b106017c1a1dd.gz
2009-10-22 14:02:17 +02:00
Adrian Lang e351c80d45 Make Doku_Form constructor more flexible
The Doku_Form constructor used to take up to four arguments setting specific
parameters of the resulting form HTML element. Instead, a generic array is
passed to the constructor specifying HTML parameters.

darcs-hash:20091022120138-e4919-3a42baf8c12b15e6df20e1f28152a992e347859d.gz
2009-10-22 14:01:38 +02:00
furun 47583ff042 Whitespace cleanup FS#1709
Ignore-this: 27ea52110bce929b2c61ed8faba67cfc

darcs-hash:20091016205526-c0bf4-35eba4e65d37980a667ba982f7f1ea5b7b07f01c.gz
2009-10-16 22:55:26 +02:00
Anika Henke a57c7caf07 more strict validity
darcs-hash:20090119194529-f7d6d-170bca22f3579528f1a6405cbec334209b40a106.gz
2009-01-19 20:45:29 +01:00
Anika Henke ef1ecfdef8 moved class.no in form to a better place (for better strict validity)
darcs-hash:20090119181424-f7d6d-93a88fde0edf058f8cf42c6673d225cd77666472.gz
2009-01-19 19:14:24 +01:00
Anika Henke 0256626a70 fixed broken empty img alt params in forms
darcs-hash:20090117172751-f7d6d-0524a77889593d24bdd46df337071833f1fecb8f.gz
2009-01-17 18:27:51 +01:00
Andreas Gohr fa8adffee3 removed some illogical path setups
darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
2008-12-13 10:04:00 +01:00
Anika Henke 07493d0546 removed 'ALT+' from all titles of elements with accesskeys (FS#1172)
darcs-hash:20081012181638-f7d6d-d4614321134f78fc176688d8aaf9d9acccf1952e.gz
2008-10-12 20:16:38 +02:00
Gina Haeussge 6b4feb283d form_listboxfield now produces valid output of a listbox including label
darcs-hash:20080407193747-2b4f5-6cbc0120884b204ef8d5e4f0940938a5a75bb997.gz
2008-04-07 21:37:47 +02:00
Michael Klier 12bbca2e05 added makeFileField method to form class
darcs-hash:20071029141013-23886-ca99a6bff50766f2015f071d89fcc3265746b3b5.gz
2007-10-29 15:10:13 +01:00
Michael Klier 639dd33fd4 allow enctype setting in form class
darcs-hash:20071029134359-23886-aec96a73329d48537e02927f40b08da9b879d4b9.gz
2007-10-29 14:43:59 +01:00
Tom N Harris b2bc77d560 Avoid duplicate attributes in forms
darcs-hash:20071006195720-6942e-d95785f967bab4f89a3b61dc4467e3902a6b6fdf.gz
2007-10-06 21:57:20 +02:00
Andreas Gohr 009768124d don't use realpath() anymore (FS#1261 and others)
The use of realpath() to clean up relative file names caused some
trouble in certain setups relying on symlinks or having restricitve
file structure setups.

This patch replaces all realpath() calls with a PHP only replacement
which should solve those problems.

darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
2007-09-30 20:42:50 +02:00
Andreas Gohr 1b2a85e896 Part 2 of the SecurityToken patch to avaoid CSRF attacks
This patch adds a security token to all forms generated through the new
form class. However it is only checked for possible dangerous actions like
editing or profile changes.

darcs-hash:20070830191429-7ad00-445efea47a09a4823dfe9e3434ba5b355a80daf6.gz
2007-08-30 21:14:29 +02:00
Andreas Gohr f2447af2a2 Space between label and input element for new form handler
darcs-hash:20070804071840-7ad00-2b1c11bc7890ab5f145e4d0545e962c144fb460a.gz
2007-08-04 09:18:40 +02:00
Tom N Harris fdb8d77b68 New structured forms and action events
Replaces a number of *FORM_INJECTION events with a more flexible way of
modifying forms. Forms are created with a Doku_Form class (inc/form.php)
that can be manipulated by plugins prior to output. Plugins register a
HTML_{$name}FORM_OUTPUT event which can modify the form object prior to
output. Available forms are:
  LOGIN DRAFT CONFLICT REGISTER UPDATEPROFILE EDIT RESENDPWD
Documentation for the Doku_Form class is in inc/form.php.

darcs-hash:20070730215007-6942e-a0cf08197f939e224a2b28c40aec5431b118ea94.gz
2007-07-30 23:50:07 +02:00