| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | function generate_content_page_handler($params) { |
||
| 14 | // generate content of type requested |
||
| 15 | switch ($params[0]) { // first parameter is the content type |
||
| 16 | case 'blog': |
||
| 17 | case 'blogs': |
||
| 18 | createBlogs($params[1]); |
||
| 19 | break; |
||
| 20 | // the rest go here |
||
| 21 | default: |
||
| 22 | # nothing |
||
| 23 | echo "usage: .../gen-content/[blogs, bookmarks, discussions, groups, members, wire_posts, files, polls, events, missions]/N to create N random instances of that content type "; |
||
| 24 | break; |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 33 |