after looking at the input extensions, they have somethings in common:
they call to some libraries/css files (could be done before by user)
they change <input ..> to something else (eg file upload)
or they slightly modify <input ...> (by adding something inside tag or directly after.
also, they possibly can change inputted values before insert (in TIB/TUB).
so my proposal:
make
| Kód: |
$opts['fdd']['col_name']['input_type'] = array (
'type' => 'textarea',
'argument1' => 'some_value',
...
'js' => 'id = name',
'after' => '<script> ...</script>'
);
|
which will display requested input field (textarea) as defined by its arguments. 'js' would be anything inside tag, 'after' would be anything after that tag, 'before' before.
some wildcards ($name, $value, ??) could be used ?
or
| Kód: |
$opts['fdd']['col_name']['input_type'] = array (
'code' => '<input type=""...>'
);
|
which will display 'code' (so anything).
all of the input extentions would just preprocess user inserted $opts and change them to $opts understandable by pme (and call some libraries).
several extentions could be processed one after another without any harm (probably).
|