1 | <?php |
||
20 | class Readme extends \hidev\base\Component |
||
21 | { |
||
22 | /** |
||
23 | * @var \Twig_Environment |
||
24 | */ |
||
25 | protected $_twig; |
||
26 | |||
27 | /** |
||
28 | * @var array list of sections to render |
||
29 | */ |
||
30 | protected $_sections; |
||
31 | |||
32 | public $knownBadges = []; |
||
33 | |||
34 | public $badges; |
||
35 | |||
36 | /** |
||
37 | * Get charset. |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getCharset() |
||
44 | |||
45 | public function renderH($title, $prefix) |
||
49 | |||
50 | public function renderH1($title) |
||
54 | |||
55 | public function renderH2($title) |
||
59 | |||
60 | public function renderH3($title) |
||
64 | |||
65 | public function renderText($text) |
||
71 | |||
72 | public function renderBold($text) |
||
78 | |||
79 | public function renderSection($section, $default = null) |
||
88 | |||
89 | public function getSection($file, $default = null) |
||
100 | |||
101 | /** |
||
102 | * Set sections list. |
||
103 | * @param array $value |
||
104 | */ |
||
105 | public function setSections($value) |
||
109 | |||
110 | /** |
||
111 | * Returns sections list. Returns default list if not set. |
||
112 | * @return array |
||
113 | */ |
||
114 | public function getSections() |
||
122 | |||
123 | /** |
||
124 | * Render all configured sections. |
||
125 | * @return string |
||
126 | */ |
||
127 | public function renderSections($sections = null) |
||
139 | |||
140 | /** |
||
141 | * Render all configured badges. |
||
142 | * @return string |
||
143 | */ |
||
144 | public function renderBadges() |
||
167 | |||
168 | /** |
||
169 | * Render badge by given template. |
||
170 | * @param string $template string to render |
||
171 | * @return string |
||
172 | */ |
||
173 | public function renderBadge($template) |
||
177 | |||
178 | /** |
||
179 | * Twig getter. |
||
180 | * @return \Twig_Environment |
||
181 | */ |
||
182 | public function getTwig() |
||
190 | } |
||
191 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.