[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Form/ -> LegacyForm.php (summary)

(no description)

File Size: 182 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LegacyForm:: (4 methods):
  __construct()
  parseLegacyAttr()
  legacyType()
  toLegacy()


Class: LegacyForm  - X-Ref

Class LegacyForm

Provides a compatibility layer to the old Doku_Form API

This can be used to work with the modern API on forms provided by old events for
example. When you start new forms, just use Form\Form

__construct(\Doku_Form $oldform)   X-Ref
Creates a new modern form from an old legacy Doku_Form

param: \Doku_Form $oldform

parseLegacyAttr($legacy)   X-Ref
Parses out what is the elements attributes and what is control info

return: array
param: array $legacy

legacyType($type)   X-Ref
Translates our types to the legacy types

return: string
param: string $type

toLegacy()   X-Ref
Creates an old legacy form from this modern form's data

return: \Doku_Form