story.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. $this->app->loadLang('product');
  3. $this->app->loadLang('productplan');
  4. $this->app->loadLang('story');
  5. $this->app->loadLang('project');
  6. $this->app->loadLang('tree');
  7. $this->app->loadLang('dataview');
  8. $schema = new stdclass();
  9. $schema->primaryTable = 'story';
  10. $schema->tables = array();
  11. $schema->tables['story'] = 'zt_story';
  12. $schema->tables['product'] = 'zt_product';
  13. $schema->tables['productline'] = 'zt_module';
  14. $schema->tables['productplan'] = 'zt_productplan';
  15. $schema->tables['program'] = 'zt_project';
  16. $schema->tables['project'] = 'zt_project';
  17. $schema->tables['storymodule'] = 'zt_module';
  18. $schema->tables['storyspec'] = 'zt_storyspec';
  19. $schema->joins = array();
  20. $schema->joins['product'] = '`product`.`id` = `story`.`product`';
  21. $schema->joins['storymodule'] = '`storymodule`.`id` = `story`.`module`';
  22. $schema->joins['storyspec'] = '`storyspec`.`story` = `story`.`id`';
  23. $schema->fields = array();
  24. $schema->fields['id'] = array('type' => 'number', 'name' => $this->lang->story->id);
  25. $schema->fields['title'] = array('type' => 'string', 'name' => $this->lang->story->title);
  26. $schema->fields['status'] = array('type' => 'option', 'name' => $this->lang->story->status, 'options' => $this->lang->story->statusList);
  27. $schema->fields['stage'] = array('type' => 'option', 'name' => $this->lang->story->stage, 'options' => $this->lang->story->stageList);
  28. $schema->fields['pri'] = array('type' => 'option', 'name' => $this->lang->story->pri, 'options' => $this->lang->story->priList);
  29. $schema->fields['source'] = array('type' => 'option', 'name' => $this->lang->story->source, 'options' => $this->lang->story->sourceList);
  30. $schema->fields['type'] = array('type' => 'option', 'name' => $this->lang->story->type, 'options' => $this->lang->story->typeList);
  31. $schema->fields['category'] = array('type' => 'option', 'name' => $this->lang->story->category, 'options' => $this->lang->story->categoryList);
  32. $schema->fields['product'] = array('type' => 'object', 'name' => $this->lang->story->product, 'object' => 'product', 'show' => 'product.name');
  33. $schema->fields['storymodule'] = array('type' => 'object', 'name' => $this->lang->story->module, 'object' => 'storymodule', 'show' => 'storymodule.name');
  34. $schema->fields['closedDate'] = array('type' => 'date', 'name' => $this->lang->story->closedDate);
  35. $schema->fields['closedReason'] = array('type' => 'option', 'name' => $this->lang->story->closedReason, 'options' => $this->lang->story->reasonList);
  36. $schema->fields['openedBy'] = array('type' => 'user', 'name' => $this->lang->story->openedBy);
  37. $schema->fields['openedDate'] = array('type' => 'date', 'name' => $this->lang->story->openedDate);
  38. $schema->fields['assignedTo'] = array('type' => 'user', 'name' => $this->lang->story->assignedTo);
  39. $schema->fields['changedBy'] = array('type' => 'user', 'name' => $this->lang->story->changedBy);
  40. $schema->fields['closedBy'] = array('type' => 'user', 'name' => $this->lang->story->closedBy);
  41. $schema->objects = array();
  42. $schema->objects['product'] = array();
  43. $schema->objects['product']['id'] = array('type' => 'number', 'name' => $this->lang->product->id);
  44. $schema->objects['product']['name'] = array('type' => 'string', 'name' => $this->lang->product->common);
  45. $schema->objects['storymodule'] = array();
  46. $schema->objects['storymodule']['id'] = array('type' => 'number', 'name' => $this->lang->dataview->id);
  47. $schema->objects['storymodule']['name'] = array('type' => 'string', 'name' => $this->lang->tree->name);