form.php 1.9 KB

123456789101112131415161718192021
  1. <?php
  2. global $lang, $app;
  3. $config->process->form = new stdclass();
  4. $config->process->form->create['module'] = array('required' => true, 'type' => 'int', 'default' => 0);
  5. $config->process->form->create['name'] = array('required' => true, 'type' => 'string', 'default' => '');
  6. $config->process->form->create['abbr'] = array('required' => false, 'type' => 'string', 'default' => '');
  7. $config->process->form->create['desc'] = array('required' => false, 'type' => 'string', 'default' => '', 'control' => 'editor');
  8. $config->process->form->create['createdBy'] = array('required' => false, 'type' => 'string', 'default' => isset($app->user->account) ? $app->user->account : '');
  9. $config->process->form->create['createdDate'] = array('required' => false, 'type' => 'string', 'default' => helper::now());
  10. $config->process->form->create['workflowGroup'] = array('required' => false, 'type' => 'int', 'default' => 0);
  11. $config->process->form->edit['module'] = array('required' => true, 'type' => 'int', 'default' => 0);
  12. $config->process->form->edit['name'] = array('required' => true, 'type' => 'string', 'default' => '');
  13. $config->process->form->edit['abbr'] = array('required' => false, 'type' => 'string', 'default' => '');
  14. $config->process->form->edit['desc'] = array('required' => false, 'type' => 'string', 'default' => '', 'control' => 'editor');
  15. $config->process->form->edit['editedBy'] = array('required' => false, 'type' => 'string', 'default' => isset($app->user->account) ? $app->user->account : '');
  16. $config->process->form->edit['editedDate'] = array('required' => false, 'type' => 'string', 'default' => helper::now());
  17. $config->process->form->manageModule['id'] = array('required' => false, 'type' => 'int', 'default' => 0);
  18. $config->process->form->manageModule['name'] = array('required' => true, 'type' => 'string', 'default' => '', 'base' => true);