1 | <?php |
||
18 | class Html extends BaseHtml |
||
19 | { |
||
20 | /** |
||
21 | * This class should not be instantiated. |
||
22 | */ |
||
23 | private function __construct() |
||
26 | |||
27 | /** |
||
28 | * Generates a callto hyperlink. |
||
29 | * |
||
30 | * @see mailto() |
||
31 | * |
||
32 | * @param string $phone |
||
33 | * @param null|string $text |
||
34 | * @param array $options |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public static function callTo($phone, $text = null, $options = []) |
||
45 | |||
46 | /** |
||
47 | * Generates safe hyperlink to external resource. |
||
48 | * |
||
49 | * @param string $text |
||
50 | * @param string $url |
||
51 | * @param array $options |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public static function externalLink($text, $url, $options = []) |
||
63 | |||
64 | /** |
||
65 | * Returns HTML wrapped in to `noindex` comment. |
||
66 | * |
||
67 | * @param string $html |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public static function wrapToNoIndex($html) |
||
75 | |||
76 | /** |
||
77 | * Returns HTML wrapped into `<noindex>` tag. |
||
78 | * |
||
79 | * @param string $html |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public static function wrapToNoIndexTag($html) |
||
87 | } |
||
88 |