Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_ConceptPage.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Returns the HTML which is added to $wgOut after the article text. |
31 | | - * |
| 31 | + * |
32 | 32 | * @return string |
33 | 33 | */ |
34 | 34 | protected function getHtml() { |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | $queryResult = $store->getQueryResult( $query ); |
42 | 42 | |
43 | 43 | $diWikiPages = $queryResult->getResults(); |
44 | | - if ($this->until !== '' ) { |
| 44 | + if ( $this->until !== '' ) { |
45 | 45 | $diWikiPages = array_reverse( $diWikiPages ); |
46 | 46 | } |
47 | 47 | |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | */ |
78 | 78 | // private function formatList( $cutoff = 6 ) { |
79 | 79 | // $end = count( $this->diWikiPages ); |
80 | | -// |
| 80 | +// |
81 | 81 | // if ( $end > $this->limit ) { |
82 | 82 | // if ( $this->until !== '' ) { |
83 | 83 | // $start = 1; |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | // } else { |
89 | 89 | // $start = 0; |
90 | 90 | // } |
91 | | -// |
| 91 | +// |
92 | 92 | // if ( count ( $this->diWikiPages ) > $cutoff ) { |
93 | 93 | // return $this->columnList( $start, $end, $this->diWikiPages ); |
94 | 94 | // } elseif ( count( $this->diWikiPages ) > 0 ) { |
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_OrderedListPage.php |
— | — | @@ -5,39 +5,39 @@ |
6 | 6 | * article pages for Concept and Property pages. This is mainly parameter |
7 | 7 | * handling and some very basic output control. |
8 | 8 | * |
9 | | - * @file SMW_OrderedListPage.php |
| 9 | + * @file SMW_OrderedListPage.php |
10 | 10 | * @ingroup SMW |
11 | | - * |
| 11 | + * |
12 | 12 | * @author Nikolas Iwan |
13 | 13 | * @author Markus Krötzsch |
14 | | - * @author Jeroen De Dauw |
| 14 | + * @author Jeroen De Dauw |
15 | 15 | */ |
16 | 16 | abstract class SMWOrderedListPage extends Article { |
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Limit for results per page. |
20 | | - * |
| 20 | + * |
21 | 21 | * @var integer |
22 | 22 | */ |
23 | 23 | protected $limit; |
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Start string: print $limit results from here. |
27 | | - * |
| 27 | + * |
28 | 28 | * @var string |
29 | 29 | */ |
30 | 30 | protected $from; |
31 | | - |
| 31 | + |
32 | 32 | /** |
33 | 33 | * End string: print $limit results strictly before this article. |
34 | | - * |
| 34 | + * |
35 | 35 | * @var string |
36 | | - */ |
| 36 | + */ |
37 | 37 | protected $until; |
38 | | - |
| 38 | + |
39 | 39 | /** |
40 | 40 | * Cache for the current skin, obtained from $wgUser. |
41 | | - * |
| 41 | + * |
42 | 42 | * @var Skin |
43 | 43 | */ |
44 | 44 | protected $skin; |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | * (e.g. $limit). Method can be overwritten in this case. |
94 | 94 | * If the method returns false, nothing will be printed besides |
95 | 95 | * the original article. |
96 | | - * |
| 96 | + * |
97 | 97 | * @return true |
98 | 98 | */ |
99 | 99 | protected function initParameters() { |
— | — | @@ -102,16 +102,16 @@ |
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Returns the HTML which is added to $wgOut after the article text. |
106 | | - * |
| 106 | + * |
107 | 107 | * @return string |
108 | 108 | */ |
109 | 109 | protected abstract function getHtml(); |
110 | 110 | |
111 | 111 | /** |
112 | 112 | * Like Article's getTitle(), but returning a suitable SMWDIWikiPage. |
113 | | - * |
| 113 | + * |
114 | 114 | * @since 1.6 |
115 | | - * |
| 115 | + * |
116 | 116 | * @return SMWDIWikiPage |
117 | 117 | */ |
118 | 118 | protected function getDataItem() { |
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_PropertyPage.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | * |
9 | 9 | * @file SMW_PropertyPage.php |
10 | 10 | * @ingroup SMW |
11 | | - * |
| 11 | + * |
12 | 12 | * @author Markus Krötzsch |
13 | 13 | */ |
14 | 14 | class SMWPropertyPage extends SMWOrderedListPage { |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Returns the HTML which is added to $wgOut after the article text. |
29 | | - * |
| 29 | + * |
30 | 30 | * @return string |
31 | 31 | */ |
32 | 32 | protected function getHtml() { |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | } |
64 | 64 | |
65 | 65 | $result .= wfMsgExt( 'smw_subpropertyarticlecount', array( 'parsemag' ), $resultCount ) . "</p>\n"; |
66 | | - |
| 66 | + |
67 | 67 | if ( $resultCount < 6 ) { |
68 | 68 | $result .= SMWPageLister::getShortList( 0, $resultCount, $subproperties, null ); |
69 | 69 | } else { |
— | — | @@ -159,13 +159,13 @@ |
160 | 160 | $searchlink = SMWInfolink::newBrowsingLink( '+', $dvWikiPage->getShortHTMLText() ); |
161 | 161 | $r .= '<tr><td class="smwpropname">' . $dvWikiPage->getShortHTMLText( smwfGetLinker() ) . |
162 | 162 | ' ' . $searchlink->getHTML( smwfGetLinker() ) . '</td><td class="smwprops">'; |
163 | | - |
| 163 | + |
164 | 164 | // Property values |
165 | 165 | $ropts = new SMWRequestOptions(); |
166 | 166 | $ropts->limit = $smwgMaxPropertyValues + 1; |
167 | 167 | $values = $store->getPropertyValues( $diWikiPage, $this->mProperty, $ropts ); |
168 | 168 | $i = 0; |
169 | | - |
| 169 | + |
170 | 170 | foreach ( $values as $di ) { |
171 | 171 | if ( $i != 0 ) { |
172 | 172 | $r .= ', '; |