| @@ 334-345 (lines=12) @@ | ||
| 331 | * @param int $key |
|
| 332 | * @return SimplePie_Category|null |
|
| 333 | */ |
|
| 334 | public function get_category($key = 0) |
|
| 335 | { |
|
| 336 | $categories = $this->get_categories(); |
|
| 337 | if (isset($categories[$key])) |
|
| 338 | { |
|
| 339 | return $categories[$key]; |
|
| 340 | } |
|
| 341 | else |
|
| 342 | { |
|
| 343 | return null; |
|
| 344 | } |
|
| 345 | } |
|
| 346 | ||
| 347 | /** |
|
| 348 | * Get all categories |
|
| @@ 417-428 (lines=12) @@ | ||
| 414 | * @param int $key The category that you want to return. Remember that arrays begin with 0, not 1 |
|
| 415 | * @return SimplePie_Category|null |
|
| 416 | */ |
|
| 417 | public function get_category($key = 0) |
|
| 418 | { |
|
| 419 | $categories = $this->get_categories(); |
|
| 420 | if (isset($categories[$key])) |
|
| 421 | { |
|
| 422 | return $categories[$key]; |
|
| 423 | } |
|
| 424 | else |
|
| 425 | { |
|
| 426 | return null; |
|
| 427 | } |
|
| 428 | } |
|
| 429 | ||
| 430 | /** |
|
| 431 | * Get all categories for the item |
|
| @@ 140-151 (lines=12) @@ | ||
| 137 | } |
|
| 138 | } |
|
| 139 | ||
| 140 | public function get_category($key = 0) |
|
| 141 | { |
|
| 142 | $categories = $this->get_categories(); |
|
| 143 | if (isset($categories[$key])) |
|
| 144 | { |
|
| 145 | return $categories[$key]; |
|
| 146 | } |
|
| 147 | else |
|
| 148 | { |
|
| 149 | return null; |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| 153 | public function get_categories() |
|
| 154 | { |
|
| @@ 2055-2066 (lines=12) @@ | ||
| 2052 | * @param int $key The category that you want to return. Remember that arrays begin with 0, not 1 |
|
| 2053 | * @return SimplePie_Category|null |
|
| 2054 | */ |
|
| 2055 | public function get_category($key = 0) |
|
| 2056 | { |
|
| 2057 | $categories = $this->get_categories(); |
|
| 2058 | if (isset($categories[$key])) |
|
| 2059 | { |
|
| 2060 | return $categories[$key]; |
|
| 2061 | } |
|
| 2062 | else |
|
| 2063 | { |
|
| 2064 | return null; |
|
| 2065 | } |
|
| 2066 | } |
|
| 2067 | ||
| 2068 | /** |
|
| 2069 | * Get all categories for the feed |
|