@@ -38,16 +38,25 @@ discard block |
||
38 | 38 | return (isset(Yii::$app->charset) ? Yii::$app->charset : null) ?: mb_internal_encoding(); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $prefix |
|
43 | + */ |
|
41 | 44 | public function renderH($title, $prefix) |
42 | 45 | { |
43 | 46 | return $prefix . ' ' . $title . "\n"; |
44 | 47 | } |
45 | 48 | |
49 | + /** |
|
50 | + * @param string $title |
|
51 | + */ |
|
46 | 52 | public function renderH1($title) |
47 | 53 | { |
48 | 54 | return $this->renderH($title, '#'); |
49 | 55 | } |
50 | 56 | |
57 | + /** |
|
58 | + * @param string $title |
|
59 | + */ |
|
51 | 60 | public function renderH2($title) |
52 | 61 | { |
53 | 62 | return $this->renderH($title, '##'); |
@@ -58,6 +67,9 @@ discard block |
||
58 | 67 | return $this->renderH($title, '###'); |
59 | 68 | } |
60 | 69 | |
70 | + /** |
|
71 | + * @param string $text |
|
72 | + */ |
|
61 | 73 | public function renderText($text) |
62 | 74 | { |
63 | 75 | $text = trim($text); |
@@ -82,6 +94,9 @@ discard block |
||
82 | 94 | return $text ? "\n## $section\n\n$text\n" : ''; |
83 | 95 | } |
84 | 96 | |
97 | + /** |
|
98 | + * @param string $file |
|
99 | + */ |
|
85 | 100 | public function getSection($file, $default = null) |
86 | 101 | { |
87 | 102 | $view = Yii::$app->getView(); |