Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class AlternateFormats extends Zend_View_Helper_Abstract |
||
9 | { |
||
10 | protected static $supportedFormats = [ |
||
11 | 'rss' => [ |
||
12 | 'name' => 'RSS', |
||
13 | ], |
||
14 | 'csv' => [ |
||
15 | 'name' => 'CSV', |
||
16 | ], |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * Returns a string of HTML links for end-user, and also append 'alternate' links to HTML header |
||
21 | * |
||
22 | * @param array $formats |
||
23 | * @param string $title |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | public function alternateFormats(array $formats, $title = null) |
||
51 |