config.php 1.7 KB

123456789101112131415161718192021222324
  1. <?php
  2. $config->cron = new stdclass();
  3. $config->cron->create = new stdclass();
  4. $config->cron->edit = new stdclass();
  5. $config->cron->create->requiredFields = 'm,h,dom,mon,dow,command';
  6. $config->cron->edit->requiredFields = 'm,h,dom,mon,dow,command';
  7. $config->cron->maxRunDays = 8;
  8. $config->cron->maxRunTime = 65;
  9. $config->cron->maxConsumer = 4;
  10. global $lang;
  11. $config->cron->dtable = new stdclass();
  12. $config->cron->dtable->fieldList = array();
  13. $config->cron->dtable->fieldList['m'] = array('sortType' => false, 'type' => 'number', 'title' => $lang->cron->m);
  14. $config->cron->dtable->fieldList['h'] = array('sortType' => false, 'type' => 'number', 'title' => $lang->cron->h);
  15. $config->cron->dtable->fieldList['dom'] = array('sortType' => false, 'type' => 'number', 'title' => $lang->cron->dom);
  16. $config->cron->dtable->fieldList['mon'] = array('sortType' => false, 'type' => 'number', 'title' => $lang->cron->mon);
  17. $config->cron->dtable->fieldList['dow'] = array('sortType' => false, 'type' => 'number', 'title' => $lang->cron->dow);
  18. $config->cron->dtable->fieldList['command'] = array('sortType' => false, 'type' => 'text', 'title' => $lang->cron->command);
  19. $config->cron->dtable->fieldList['status'] = array('sortType' => false, 'type' => 'status', 'title' => $lang->cron->status, 'statusMap' => $lang->cron->statusList);
  20. $config->cron->dtable->fieldList['remark'] = array('sortType' => false, 'type' => 'text', 'title' => $lang->cron->remark);
  21. $config->cron->dtable->fieldList['lastTime'] = array('sortType' => false, 'type' => 'datetime', 'title' => $lang->cron->lastTime);
  22. $config->cron->dtable->fieldList['actions'] = array('sortType' => false, 'width' => '110px', 'title' => $lang->actions, 'type' => 'html');