team.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. $this->app->loadLang('task');
  3. $this->app->loadLang('project');
  4. $this->app->loadLang('execution');
  5. $teamLang = new stdclass();
  6. $teamLang->type = '对象类型';
  7. $teamLang->typeList['task'] = '任务';
  8. $teamLang->typeList['execution'] = '执行';
  9. $teamLang->typeList['project'] = '项目';
  10. $schema = new stdclass();
  11. $schema->primaryTable = 'team';
  12. $schema->tables = array();
  13. $schema->tables['team'] = 'zt_team';
  14. $schema->tables['project'] = 'zt_project';
  15. $schema->tables['execution'] = 'zt_project';
  16. $schema->tables['task'] = 'zt_task';
  17. $schema->joins = array();
  18. $schema->joins['execution'] = '`team`.`root` = `execution`.`id`';
  19. $schema->joins['project'] = '`team`.`root` = `project`.`id`';
  20. $schema->joins['task'] = '`team`.`root` = `task`.`id`';
  21. $schema->fields = array();
  22. $schema->fields['root'] = array('type' => 'object', 'name' => $this->lang->execution->common, 'object' => 'execution', 'show' => 'execution.name');
  23. $schema->fields['account'] = array('type' => 'user', 'name' => $this->lang->team->account);
  24. $schema->fields['type'] = array('type' => 'option', 'name' => $teamLang->type, 'options' => $teamLang->typeList);
  25. $schema->objects = array();
  26. $schema->objects['execution'] = array();
  27. $schema->objects['execution']['id'] = array('type' => 'number', 'name' => $this->lang->execution->id);
  28. $schema->objects['execution']['name'] = array('type' => 'string', 'name' => $this->lang->execution->name);