| @@ 343-351 (lines=9) @@ | ||
| 340 | * @param object $module |
|
| 341 | * @return object |
|
| 342 | */ |
|
| 343 | function generate_docs_sommaire($module) { |
|
| 344 | $blocks = filter ( |
|
| 345 | satisfiesAll(['ignore' => not(), 'internal' => not(), 'type' => equals('function')]), |
|
| 346 | $module->blocks |
|
| 347 | ); |
|
| 348 | $items = map(_f('generate_docs_sommaire_item'), $blocks); |
|
| 349 | $module->docs .= join('', $items); |
|
| 350 | return $module; |
|
| 351 | } |
|
| 352 | ||
| 353 | /** |
|
| 354 | * Generates an item of the documentation's table of contents. |
|
| @@ 373-381 (lines=9) @@ | ||
| 370 | * @param object $module |
|
| 371 | * @return object |
|
| 372 | */ |
|
| 373 | function generate_docs_contents($module) { |
|
| 374 | $blocks = filter ( |
|
| 375 | satisfiesAll(['ignore' => not(), 'internal' => not()]), |
|
| 376 | $module->blocks |
|
| 377 | ); |
|
| 378 | $contents = map(_f('generate_docs_contents_item'), $blocks); |
|
| 379 | $module->docs .= join('', $contents); |
|
| 380 | return $module; |
|
| 381 | } |
|
| 382 | ||
| 383 | /** |
|
| 384 | * Generates an item of the documentation's contents. |
|