MultiColumn(汎用項目設計) - opensource-workshop/connect-cms GitHub Wiki
Multi culumn plugin's structure design.
(汎用的に項目を作成できるプラグインの項目設計)
Use session and form request.
(セッション及び画面項目で使用します)
-
Base array.(基本の配列)
plugin_name[frame_id][row_no]
(プラグイン名からフレームID、フォームID、行番号) -
Row detail
['columns_id'] --- DB Column-table Key. [before database record is 0] (カラム用DBのid)
['column_type'] --- group, text, textarea, radio, ....(入力形式の種類)
['column_name'] --- Input Name(項目名)
['required'] --- 1:Required, 0:Null OK(必須)
['delete_flag'] --- 1:Before saving delete column(1:画面上削除でDB削除はまだのもの)
['frame_col'] --- Group Column is column count.(まとめ行の場合のまとめカラム数)
['select'][no]['value']
['select'][no]['caption']
['select'][no]['default'] -
Overall example(plugin is forms)
forms[frame_id][forms_id][row_no]['columns_id']
forms[frame_id][forms_id][row_no]['column_type']
forms[frame_id][forms_id][row_no]['column_name']
forms[frame_id][forms_id][row_no]['required']
forms[frame_id][forms_id][row_no]['delete_flag']