| @@ 502-513 (lines=12) @@ | ||
| 499 | * @param int $key The author that you want to return. Remember that arrays begin with 0, not 1 |
|
| 500 | * @return SimplePie_Author|null |
|
| 501 | */ |
|
| 502 | public function get_author($key = 0) |
|
| 503 | { |
|
| 504 | $authors = $this->get_authors(); |
|
| 505 | if (isset($authors[$key])) |
|
| 506 | { |
|
| 507 | return $authors[$key]; |
|
| 508 | } |
|
| 509 | else |
|
| 510 | { |
|
| 511 | return null; |
|
| 512 | } |
|
| 513 | } |
|
| 514 | ||
| 515 | /** |
|
| 516 | * Get a contributor for the item |
|
| @@ 210-221 (lines=12) @@ | ||
| 207 | } |
|
| 208 | } |
|
| 209 | ||
| 210 | public function get_author($key = 0) |
|
| 211 | { |
|
| 212 | $authors = $this->get_authors(); |
|
| 213 | if (isset($authors[$key])) |
|
| 214 | { |
|
| 215 | return $authors[$key]; |
|
| 216 | } |
|
| 217 | else |
|
| 218 | { |
|
| 219 | return null; |
|
| 220 | } |
|
| 221 | } |
|
| 222 | ||
| 223 | public function get_authors() |
|
| 224 | { |
|
| @@ 2140-2151 (lines=12) @@ | ||
| 2137 | * @param int $key The author that you want to return. Remember that arrays begin with 0, not 1 |
|
| 2138 | * @return SimplePie_Author|null |
|
| 2139 | */ |
|
| 2140 | public function get_author($key = 0) |
|
| 2141 | { |
|
| 2142 | $authors = $this->get_authors(); |
|
| 2143 | if (isset($authors[$key])) |
|
| 2144 | { |
|
| 2145 | return $authors[$key]; |
|
| 2146 | } |
|
| 2147 | else |
|
| 2148 | { |
|
| 2149 | return null; |
|
| 2150 | } |
|
| 2151 | } |
|
| 2152 | ||
| 2153 | /** |
|
| 2154 | * Get all authors for the feed |
|