[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace Fig\Link; 4 5 use Psr\Link\LinkInterface; 6 7 /** 8 * Class LinkTrait 9 * 10 * @inherits LinkInterface 11 */ 12 trait LinkTrait 13 { 14 use TemplatedHrefTrait; 15 16 /** 17 * 18 * 19 * @var string 20 */ 21 private $href = ''; 22 23 /** 24 * The set of rels on this link. 25 * 26 * Note: Because rels are an exclusive set, we use the keys of the array 27 * to store the rels that have been added, not the values. The values 28 * are simply boolean true. A rel is present if the key is set, false 29 * otherwise. 30 * 31 * @var string[] 32 */ 33 private $rel = []; 34 35 /** 36 * 37 * 38 * @var string 39 */ 40 private $attributes = []; 41 42 /** 43 * {@inheritdoc} 44 */ 45 public function getHref() 46 { 47 return $this->href; 48 } 49 50 /** 51 * {@inheritdoc} 52 */ 53 public function isTemplated() 54 { 55 return $this->hrefIsTemplated($this->href); 56 } 57 58 /** 59 * {@inheritdoc} 60 */ 61 public function getRels() 62 { 63 return array_keys($this->rel); 64 } 65 66 /** 67 * {@inheritdoc} 68 */ 69 public function getAttributes() 70 { 71 return $this->attributes; 72 } 73 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |