Lines Matching refs:key

391      * @param int $key The category that you want to return.  Remember that arrays begin with 0, not 1
394 public function get_category($key = 0)
397 if (isset($categories[$key])) {
398 return $categories[$key];
463 * @param int $key The author that you want to return. Remember that arrays begin with 0, not 1
466 public function get_author($key = 0)
469 if (isset($authors[$key])) {
470 return $authors[$key];
480 * @param int $key The contrbutor that you want to return. Remember that arrays begin with 0, not 1
483 public function get_contributor($key = 0)
486 if (isset($contributors[$key])) {
487 return $contributors[$key];
799 * Identical to {@see get_link()} with key 0
822 * @param int $key The link that you want to return. Remember that arrays begin with 0, not 1
826 public function get_link($key = 0, $rel = 'alternate')
829 if ($links && $links[$key] !== null) {
830 return $links[$key];
877 foreach ($keys as $key) {
878 if ($this->registry->call(Misc::class, 'is_isegment_nz_nc', [$key])) {
879 if (isset($this->data['links'][\SimplePie\SimplePie::IANA_LINK_RELATIONS_REGISTRY . $key])) {
880 $this->data['links'][\SimplePie\SimplePie::IANA_LINK_RELATIONS_REGISTRY . $key] = array_merge($this->data['links'][$key], $this->data['links'][\SimplePie\SimplePie::IANA_LINK_RELATIONS_REGISTRY . $key]);
881 $this->data['links'][$key] =& $this->data['links'][\SimplePie\SimplePie::IANA_LINK_RELATIONS_REGISTRY . $key];
883 $this->data['links'][\SimplePie\SimplePie::IANA_LINK_RELATIONS_REGISTRY . $key] =& $this->data['links'][$key];
885 } elseif (substr($key, 0, 41) === \SimplePie\SimplePie::IANA_LINK_RELATIONS_REGISTRY) {
886 $this->data['links'][substr($key, 41)] =& $this->data['links'][$key];
888 $this->data['links'][$key] = array_unique($this->data['links'][$key]);
905 * @param int $key The enclosure that you want to return. Remember that arrays begin with 0, not 1
908 public function get_enclosure($key = 0, $prefer = null)
911 if (isset($enclosures[$key])) {
912 return $enclosures[$key];