1 | <?php |
||
16 | class ReferenceListOutputRenderer { |
||
17 | |||
18 | /** |
||
19 | * @var CitationResourceMatchFinder |
||
20 | */ |
||
21 | private $citationResourceMatchFinder; |
||
22 | |||
23 | /** |
||
24 | * @var CitationReferencePositionJournal |
||
25 | */ |
||
26 | private $citationReferencePositionJournal; |
||
27 | |||
28 | /** |
||
29 | * @var HtmlColumnListRenderer |
||
30 | */ |
||
31 | private $htmlColumnListRenderer; |
||
32 | |||
33 | /** |
||
34 | * @var integer |
||
35 | */ |
||
36 | private $numberOfReferenceListColumns = 0; |
||
37 | |||
38 | /** |
||
39 | * @var boolean |
||
40 | */ |
||
41 | private $browseLinkToCitationResourceVisibility = true; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | */ |
||
46 | private $referenceListType = 'ol'; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | */ |
||
51 | private $referenceListHeader = ''; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | private $referenceListHeaderTocId = ''; |
||
57 | |||
58 | /** |
||
59 | * @var integer |
||
60 | */ |
||
61 | private $citationReferenceCaptionFormat = SCI_CITEREF_NUM; |
||
62 | |||
63 | /** |
||
64 | * @var integer |
||
65 | */ |
||
66 | private $responsiveMonoColumnCharacterBoundLength = 400; |
||
67 | |||
68 | /** |
||
69 | * @since 1.0 |
||
70 | * |
||
71 | * @param CitationResourceMatchFinder $citationResourceMatchFinder |
||
72 | * @param CitationReferencePositionJournal $citationReferencePositionJournal |
||
73 | * @param HtmlColumnListRenderer $htmlColumnListRenderer |
||
74 | */ |
||
75 | 12 | public function __construct( CitationResourceMatchFinder $citationResourceMatchFinder, CitationReferencePositionJournal $citationReferencePositionJournal, HtmlColumnListRenderer $htmlColumnListRenderer ) { |
|
80 | |||
81 | /** |
||
82 | * @since 1.0 |
||
83 | * |
||
84 | * @param integer $citationReferenceCaptionFormat |
||
85 | */ |
||
86 | 9 | public function setCitationReferenceCaptionFormat( $citationReferenceCaptionFormat ) { |
|
89 | |||
90 | /** |
||
91 | * @since 1.2 |
||
92 | * |
||
93 | * @param integer $responsiveMonoColumnCharacterBoundLength |
||
94 | */ |
||
95 | 10 | public function setResponsiveMonoColumnCharacterBoundLength( $responsiveMonoColumnCharacterBoundLength ) { |
|
98 | |||
99 | /** |
||
100 | * @since 1.0 |
||
101 | * |
||
102 | * @param integer $numberOfReferenceListColumns |
||
103 | */ |
||
104 | 11 | public function setNumberOfReferenceListColumns( $numberOfReferenceListColumns ) { |
|
107 | |||
108 | /** |
||
109 | * @since 1.0 |
||
110 | * |
||
111 | * @param integer |
||
112 | */ |
||
113 | 10 | public function getNumberOfReferenceListColumns() { |
|
116 | |||
117 | /** |
||
118 | * @since 1.0 |
||
119 | * |
||
120 | * @param string $referenceListType |
||
121 | */ |
||
122 | 10 | public function setReferenceListType( $referenceListType ) { |
|
125 | |||
126 | /** |
||
127 | * @since 1.0 |
||
128 | * |
||
129 | * @param string |
||
130 | */ |
||
131 | 10 | public function getReferenceListType() { |
|
134 | |||
135 | /** |
||
136 | * @since 1.0 |
||
137 | * |
||
138 | * @param boolean $browseLinkToCitationResourceVisibility |
||
139 | */ |
||
140 | 11 | public function setBrowseLinkToCitationResourceVisibility( $browseLinkToCitationResourceVisibility ) { |
|
143 | |||
144 | /** |
||
145 | * @since 1.0 |
||
146 | * |
||
147 | * @param boolean |
||
148 | */ |
||
149 | 10 | public function getBrowseLinkToCitationResourceVisibility() { |
|
152 | |||
153 | /** |
||
154 | * @since 1.0 |
||
155 | * |
||
156 | * @param string $referenceListHeader |
||
157 | */ |
||
158 | 5 | public function setReferenceListHeader( $referenceListHeader ) { |
|
161 | |||
162 | /** |
||
163 | * @since 1.0 |
||
164 | * |
||
165 | * @param string $referenceListHeaderTocId |
||
166 | */ |
||
167 | 5 | public function setReferenceListHeaderTocId( $referenceListHeaderTocId ) { |
|
170 | |||
171 | /** |
||
172 | * @since 1.0 |
||
173 | * |
||
174 | * @param DIWikiPage $subject |
||
175 | * @param array|null $referenceList |
||
176 | * |
||
177 | * @return string |
||
178 | */ |
||
179 | 10 | public function doRenderReferenceListFor( DIWikiPage $subject, array $referenceList = null ) { |
|
197 | |||
198 | /** |
||
199 | * The journal is expected to contain: |
||
200 | * |
||
201 | * 'total' => a number |
||
202 | * 'reference-list' => array of hashes for references used |
||
203 | * 'reference-pos' => individual reference links (1-a, 1-b) assigned to a hash |
||
204 | */ |
||
205 | 9 | private function createHtmlFromJournal( array $journal ) { |
|
270 | 9 | ||
271 | private function makeList( $listOfFormattedReferences, $targetList, $length ) { |
||
316 | 9 | ||
317 | private function findCitationTextFor( $reference ) { |
||
330 | 7 | ||
331 | 6 | private function createFlatHtmlListForReferenceLinks( array $linkList, $referenceHash ) { |
|
368 | 8 | ||
369 | 8 | private function createBrowseLinksWith( array $subjects, $reference, $citationText ) { |
|
397 | |||
398 | } |
||
399 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.