<?php namespace Fig\Link; trait TemplatedHrefTrait { /** * Determines if an href is a templated link or not. * * @see https://tools.ietf.org/html/rfc6570 * * @param string $href * The href value to check. * * @return bool * True if the specified href is a templated path, False otherwise. */ private function hrefIsTemplated($href) { return strpos($href, '{') !== false ||strpos($href, '}') !== false; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
EvolvableLinkProviderTrait.php | File | 797 B | 0644 |
|
EvolvableLinkTrait.php | File | 1.59 KB | 0644 |
|
GenericLinkProvider.php | File | 806 B | 0644 |
|
Link.php | File | 497 B | 0644 |
|
LinkProviderTrait.php | File | 832 B | 0644 |
|
LinkTrait.php | File | 1.13 KB | 0644 |
|
Relations.php | File | 32.33 KB | 0644 |
|
TemplatedHrefTrait.php | File | 487 B | 0644 |
|