-
Notifications
You must be signed in to change notification settings - Fork 0
Dev.Module Workflow
Taiwen Jiang edited this page Mar 14, 2013
·
1 revision
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: Detailed flowchart
- Output: diagram (MS Visio)
2: Meta design
- Output
- list
3: Controller && Action design
-
Output
- List
-
List Template
- IndexController
- indexAction
- GET: $param1, $param2, ...
- POST: $param1, $param2, ...
- AJAX: No
- Template: index-index.phtml
- indexAction
- IndexController
4: 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 |
5: 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())
6: 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
7: Form design ?
-
Output
- List
- Filename
- Section(admin or front)
- Name
- Title
- Description
- List
-
List Template
- AddForm
- Section: admin
- AddForm
8: Block design
-
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
9: Page design
- Output
- List
- Name
- Access
- Block
- Controller
- Action
- Section
- List
10 Resource design
-
Output
- List
- Name
- Access
- Parent
- Section
- List
-
List Template
- test
- Section: admin
- Access: manager, staff
- test
11 Navigation
-
Output
- List
- Items
- Name
- Levels
- Url
- Controller
- Action
- Route
- Callback
- Items
- List
-
List Template
- list
- Route: admin
- Controller: index
- Action: list
- Callback: Module\Demo\Navigation::admin
- Levels: 1
- list
12 Route design
-
Output
- List
- Route Configuration
- Name
- Priority
- Prefix
- Type
- Options
- Default Action
- Custom urls
- Url
- Controller and action
- Route Configuration
- List
-
List Template
-
Route
- Name: channel
- Type: Module\Channel\Route\Channel
- Priority: 100
- Options:
- Parameter Delimiter: '/'
- Default Action:
- Controller: index
- Action: index
-
Custom Urls
- domain/login
- Controller: index
- Action: login
- domain/login
-
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