testtask.php 2.2 KB

12345678910111213141516171819
  1. <?php
  2. global $lang, $app;
  3. $app->loadLang('testtask');
  4. $config->block->testtask = new stdclass();
  5. $config->block->testtask->dtable = new stdclass();
  6. $config->block->testtask->dtable->fieldList = array();
  7. $config->block->testtask->dtable->fieldList['id'] = array('name' => 'id', 'title' => $lang->idAB, 'type' => 'id' , 'sort' => 'number');
  8. $config->block->testtask->dtable->fieldList['name'] = array('name' => 'name', 'title' => $lang->testtask->name, 'type' => 'title', 'sort' => true, 'flex' => 1, 'link' => array('module' => 'testtask', 'method' => 'view', 'params' => 'testtaskID={id}'));
  9. $config->block->testtask->dtable->fieldList['pri'] = array('name' => 'pri', 'title' => $lang->priAB, 'type' => 'pri', 'sort' => true);
  10. $config->block->testtask->dtable->fieldList['product'] = array('name' => 'productName', 'title' => $lang->testtask->product, 'type' => 'text', 'sort' => true, 'link' => array('module' => 'product', 'method' => 'browse', 'params' => 'productID={product}'));
  11. $config->block->testtask->dtable->fieldList['build'] = array('name' => 'executionBuild', 'title' => "{$lang->testtask->execution}/{$lang->build->common}", 'type' => 'text', 'sort' => true, 'link' => array('module' => 'build', 'method' => 'view', 'params' => 'buildID={build}'));
  12. $config->block->testtask->dtable->fieldList['begin'] = array('name' => 'begin', 'title' => $lang->testtask->begin, 'type' => 'date', 'sort' => 'date');
  13. $config->block->testtask->dtable->fieldList['end'] = array('name' => 'end', 'title' => $lang->testtask->end, 'type' => 'date', 'sort' => 'date');
  14. $config->block->testtask->dtable->short = new stdclass();
  15. $config->block->testtask->dtable->short->fieldList['id'] = $config->block->testtask->dtable->fieldList['id'];
  16. $config->block->testtask->dtable->short->fieldList['name'] = $config->block->testtask->dtable->fieldList['name'];
  17. $config->block->testtask->dtable->short->fieldList['end'] = $config->block->testtask->dtable->fieldList['end'];