Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
52 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
||
53 | |||
54 | $title = $semanticData->getSubject()->getTitle(); |
||
55 | |||
56 | //-1 = no limit. Returns TitleArray object |
||
57 | $subpages = $title->getSubpages( -1 ); |
||
58 | |||
59 | foreach ( $subpages as $title ) { |
||
60 | $semanticData->addPropertyObjectValue( |
||
61 | $property, |
||
62 | DIWikiPage::newFromTitle( $title ) |
||
63 | ); |
||
64 | } |
||
65 | } |
||
66 | |||
68 |