47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
|
name: FormUtil
|
||
|
class_comment: '# * @author Bernhard Schussek <bschussek@gmail.com>'
|
||
|
dependencies: []
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: __construct
|
||
|
visibility: private
|
||
|
parameters: []
|
||
|
comment: '# * @author Bernhard Schussek <bschussek@gmail.com>
|
||
|
|
||
|
# */
|
||
|
|
||
|
# class FormUtil
|
||
|
|
||
|
# {
|
||
|
|
||
|
# /**
|
||
|
|
||
|
# * This class should not be instantiated.'
|
||
|
- name: isEmpty
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: data
|
||
|
comment: '# * Returns whether the given data is empty.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * This logic is reused multiple times throughout the processing of
|
||
|
|
||
|
# * a form and needs to be consistent. PHP keyword `empty` cannot
|
||
|
|
||
|
# * be used as it also considers 0 and "0" to be empty.'
|
||
|
- name: mergeParamsAndFiles
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: params
|
||
|
- name: files
|
||
|
comment: '# * Recursively replaces or appends elements of the first array with elements
|
||
|
|
||
|
# * of second array. If the key is an integer, the values will be appended to
|
||
|
|
||
|
# * the new array; otherwise, the value from the second array will replace
|
||
|
|
||
|
# * the one from the first array.'
|
||
|
traits: []
|
||
|
interfaces: []
|