form.php 853 B

1234567891011121314
  1. <?php
  2. $config->dept->edit = new stdclass();
  3. $config->dept->edit->requiredFields = 'name';
  4. $config->dept->form = new stdclass();
  5. $config->dept->form->edit = array();
  6. $config->dept->form->edit['parent'] = array('type' => 'int', 'required' => false, 'default' => 0);
  7. $config->dept->form->edit['name'] = array('type' => 'string', 'required' => true, 'default' => '');
  8. $config->dept->form->edit['manager'] = array('type' => 'string', 'required' => false, 'default' => '');
  9. $config->dept->form->manage = array();
  10. $config->dept->form->manage['parentDeptID'] = array('type' => 'int', 'required' => false, 'default' => 0);
  11. $config->dept->form->manage['depts'] = array('type' => 'array', 'required' => true, 'default' => array());
  12. $config->dept->form->manage['maxOrder'] = array('type' => 'int', 'required' => false, 'default' => 0);