forked from pi-engine/pi
-
Notifications
You must be signed in to change notification settings - Fork 0
Dev.Module Workflow
linzongshu edited this page Jul 8, 2013
·
2 revisions
Module Development Workflow
1: Feature description
- Output: text and list
2: Use cases
- Output: text and list with diagram (MS Visio)
3: Flowchart
- Business
- System
- Output: diagram (MS Visio)
1: System Architecture
- Output: diagram (MS Visio)
- Content:
- The internal architecture of the system
- The external architecture of the system and other related system
2: Controller && Action design
-
Output
- List
-
List Template
- IndexController
- indexAction
- GET: $param1, $param2, ...
- POST: $param1, $param2, ...
- AJAX: No
- Template: index-index.phtml
- indexAction
- IndexController
3: Block
-
Output
- List
- Description
- Config list
- Name
- Type
- Description
- Default values
- List
-
List Template
- RecentUser
- Description: List recently log in users
- Configs:
- list-count
- Description: total list count
- Type: text
- Default values: 40
- list-count
- RecentUser
4: Api design
-
Output
- List
- Package
- Method to Call
- Description
- Parameters
- Return Values
- Example
- List
-
List Template:
- Test($name, $options = array())
- Package: src/Api.php
- Calling: Pi::service('api')->demo->test($name, $options);
- Description: Test method
- Parameters:
- $name: name
- $options: optional parameters
- Return Values: boolean
- Examples:
$result = Pi::service('api')->demo->test('test);
- Test($name, $options = array())
5: Main Program Logical Flowchart
- Output: diagram (MS Visio)
6: Database Design
-
Output
- Table
- Name
- Type
- Length
- Default value
- Description
- Tables relationship
- Tools: Workbench
- Table
-
Table Template:
Name | Type | Length | Default value | Description |
---|---|---|---|---|
id | int | 10 | NULL | AUTO_INCREMENT PRIMARY UNIQUE |
7: System Component
- Output: list
- Content: the special system resource used
8: Config design
-
Output
- List
- Name
- Title
- Description
- Category
- Type
- Default value
- List
-
List Template:
- max-list-per-page
- Title: item count
- Description: max list count per page
- Category: general
- Type: text
- Default value: 40
- max-list-per-page
1: Basic coding
2: Install
3: Complete business logic
4: Template integrated
1: Functional testing
2: Performance testing
- AB
- 并发
- 时间
- DB
- etc
3: Security testing
- SQL Injection
- Escape
- etc