word.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. if(!isset($config->word)) $config->word = new stdclass();
  3. $config->word->story = new stdclass();
  4. $config->word->epic = new stdclass();
  5. $config->word->requirement = new stdclass();
  6. $config->word->story->exportFields[] = 'id';
  7. $config->word->story->exportFields[] = 'spec';
  8. $config->word->story->exportFields[] = 'verify';
  9. $config->word->story->exportFields[] = 'pri';
  10. $config->word->story->exportFields[] = 'estimate';
  11. $config->word->story->exportFields[] = 'stage';
  12. $config->word->story->exportFields[] = 'status';
  13. $config->word->story->exportFields[] = 'files';
  14. $config->word->story->titleField = 'title';
  15. $config->word->epic->titleField = 'title';
  16. $config->word->requirement->titleField = 'title';
  17. $config->word->story->style['title'] = 'title';
  18. $config->word->story->style['spec'] = 'showImage';
  19. $config->word->story->style['verify'] = 'showImage';
  20. $config->word->tableName = new stdclass();
  21. $config->word->tableName->story = TABLE_STORY;
  22. $config->word->tableName->epic = TABLE_STORY;
  23. $config->word->tableName->requirement = TABLE_STORY;
  24. $config->word->header = new stdclass();
  25. $config->word->header->story = array('name' => 'product', 'tableName' => TABLE_PRODUCT);
  26. $config->word->header->epic = array('name' => 'product', 'tableName' => TABLE_PRODUCT);
  27. $config->word->header->requirement = array('name' => 'product', 'tableName' => TABLE_PRODUCT);
  28. $config->word->header->task = array('name' => 'execution', 'tableName' => TABLE_EXECUTION);
  29. $config->word->size = new stdclass();
  30. $config->word->size->titles[1] = 20;
  31. $config->word->size->titles[2] = 16;
  32. $config->word->size->titles[3] = 12;
  33. $config->word->size->titles[4] = 8;
  34. $config->word->imageExtension = array('png', 'jpg', 'gif', 'jpeg');
  35. global $app;
  36. $config->word->filePath = $app->getBasePath() . 'www/';
  37. $config->word->sectPrAbeam = '<w:sectPr><w:pgSz w:w="16838" w:h="11906" /><w:pgMar w:top="1800" w:right="1440" w:bottom="1800" w:left="1440" w:header="851" w:footer="992" w:gutter="0"/><w:cols w:space="720" w:num="1"/><w:docGrid w:type="lines" w:linePitch="312"/></w:sectPr>';
  38. $config->word->sectProVertical = '<w:sectPr><w:pgSz w:w="11906" w:h="16838"/><w:pgMar w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="851" w:footer="992" w:gutter="0"/><w:cols w:space="720" w:num="1"/><w:docGrid w:type="lines" w:linePitch="312"/></w:sectPr>';