| Conditions | 7 | 
| Paths | 7 | 
| Total Lines | 21 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 14 | function generate_content_page_handler($params) { | ||
| 15 | // generate content of type requested | ||
| 16 |     switch ($params[0]) {   // first parameter is the content type | ||
| 17 | case 'blog': | ||
| 18 | case 'blogs': | ||
| 19 | createBlogs($params[1]); | ||
| 20 | break;case 'blog': | ||
| 21 | case 'wire': | ||
| 22 | createWire($params[1]); | ||
| 23 | break; | ||
| 24 | case 'groups': | ||
| 25 | case 'group': | ||
| 26 | createGroups($params[1]); | ||
| 27 | break; | ||
| 28 | default: | ||
| 29 | # nothing | ||
| 30 | echo "usage: .../gen-content/[blogs, bookmarks, discussions, groups, members, wire, files, polls, events, missions]/N to create N random instances of that content type "; | ||
| 31 | break; | ||
| 32 | } | ||
| 33 | return true; | ||
| 34 | } | ||
| 35 | |||
| 36 |