@@ 953-964 (lines=12) @@ | ||
950 | * @param string $rel The relationship of the link to return |
|
951 | * @return string|null Link URL |
|
952 | */ |
|
953 | public function get_link($key = 0, $rel = 'alternate') |
|
954 | { |
|
955 | $links = $this->get_links($rel); |
|
956 | if ($links[$key] !== null) |
|
957 | { |
|
958 | return $links[$key]; |
|
959 | } |
|
960 | else |
|
961 | { |
|
962 | return null; |
|
963 | } |
|
964 | } |
|
965 | ||
966 | /** |
|
967 | * Get all links for the item |
@@ 364-375 (lines=12) @@ | ||
361 | } |
|
362 | } |
|
363 | ||
364 | public function get_link($key = 0, $rel = 'alternate') |
|
365 | { |
|
366 | $links = $this->get_links($rel); |
|
367 | if (isset($links[$key])) |
|
368 | { |
|
369 | return $links[$key]; |
|
370 | } |
|
371 | else |
|
372 | { |
|
373 | return null; |
|
374 | } |
|
375 | } |
|
376 | ||
377 | /** |
|
378 | * Added for parity between the parent-level and the item/entry-level. |
@@ 2325-2336 (lines=12) @@ | ||
2322 | * @param string $rel The relationship of the link to return |
|
2323 | * @return string|null Link URL |
|
2324 | */ |
|
2325 | public function get_link($key = 0, $rel = 'alternate') |
|
2326 | { |
|
2327 | $links = $this->get_links($rel); |
|
2328 | if (isset($links[$key])) |
|
2329 | { |
|
2330 | return $links[$key]; |
|
2331 | } |
|
2332 | else |
|
2333 | { |
|
2334 | return null; |
|
2335 | } |
|
2336 | } |
|
2337 | ||
2338 | /** |
|
2339 | * Get the permalink for the item |