@@ -145,6 +145,9 @@ |
||
145 | 145 | } |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param integer $active |
|
150 | + */ |
|
148 | 151 | public function setActive($active) |
149 | 152 | { |
150 | 153 | $this->active = $active; |
@@ -252,6 +252,9 @@ |
||
252 | 252 | } |
253 | 253 | } |
254 | 254 | |
255 | + /** |
|
256 | + * @param integer $preview_inner |
|
257 | + */ |
|
255 | 258 | public function setPreviewInner($preview_inner) |
256 | 259 | { |
257 | 260 | $this->preview_inner = $preview_inner; |
@@ -95,6 +95,10 @@ discard block |
||
95 | 95 | |
96 | 96 | } |
97 | 97 | |
98 | + /** |
|
99 | + * @param \Phalcon\Mvc\Application $application |
|
100 | + * @param \Phalcon\Di\FactoryDefault $di |
|
101 | + */ |
|
98 | 102 | private function initRouting($application, $di) |
99 | 103 | { |
100 | 104 | $router = new \Application\Mvc\Router\DefaultRouter(); |
@@ -113,6 +117,9 @@ discard block |
||
113 | 117 | $di->set('router', $router); |
114 | 118 | } |
115 | 119 | |
120 | + /** |
|
121 | + * @param \Phalcon\Di\FactoryDefault $di |
|
122 | + */ |
|
116 | 123 | private function initAssetsManager($di) |
117 | 124 | { |
118 | 125 | $config = $di->get('config'); |
@@ -149,6 +156,9 @@ discard block |
||
149 | 156 | $di->set('assets', $assetsManager); |
150 | 157 | } |
151 | 158 | |
159 | + /** |
|
160 | + * @param \Phalcon\Di\FactoryDefault $di |
|
161 | + */ |
|
152 | 162 | private function initEventManager($di) |
153 | 163 | { |
154 | 164 | $eventsManager = new \Phalcon\Events\Manager(); |
@@ -190,6 +200,9 @@ discard block |
||
190 | 200 | $di->set('dispatcher', $dispatcher); |
191 | 201 | } |
192 | 202 | |
203 | + /** |
|
204 | + * @param \Phalcon\Di\FactoryDefault $di |
|
205 | + */ |
|
193 | 206 | private function initView($di) |
194 | 207 | { |
195 | 208 | $view = new \Phalcon\Mvc\View(); |
@@ -224,6 +237,9 @@ discard block |
||
224 | 237 | return $view; |
225 | 238 | } |
226 | 239 | |
240 | + /** |
|
241 | + * @param \Phalcon\Di\FactoryDefault $di |
|
242 | + */ |
|
227 | 243 | private function initCache($di) |
228 | 244 | { |
229 | 245 | $config = $di->get('config'); |
@@ -257,6 +273,9 @@ discard block |
||
257 | 273 | $di->set('modelsMetadata', $modelsMetadata); |
258 | 274 | } |
259 | 275 | |
276 | + /** |
|
277 | + * @param \Phalcon\Di\FactoryDefault $di |
|
278 | + */ |
|
260 | 279 | private function dispatch($di) |
261 | 280 | { |
262 | 281 | $router = $di['router']; |
@@ -18,6 +18,9 @@ discard block |
||
18 | 18 | |
19 | 19 | protected $helper; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $name |
|
23 | + */ |
|
21 | 24 | public function renderDecorated($name) |
22 | 25 | { |
23 | 26 | if (!$this->has($name)) { |
@@ -90,6 +93,9 @@ discard block |
||
90 | 93 | return $html; |
91 | 94 | } |
92 | 95 | |
96 | + /** |
|
97 | + * @param \Phalcon\Forms\ElementInterface|null $element |
|
98 | + */ |
|
93 | 99 | private function makeLabel($element) |
94 | 100 | { |
95 | 101 | if ($element->getLabel()) { |
@@ -82,6 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * ModelName::setTranslateCache(false); // Устанавливаем флаг. Отключение кеша необходимо при работе с моделями в админке |
84 | 84 | * $entries = ModelName::find(); // Извлекаем данные |
85 | + * @param boolean $value |
|
85 | 86 | */ |
86 | 87 | public static function setTranslateCache($value) |
87 | 88 | { |
@@ -90,6 +91,7 @@ discard block |
||
90 | 91 | |
91 | 92 | /** |
92 | 93 | * Извлечение единичного перевода по имени переменной |
94 | + * @param string $key |
|
93 | 95 | */ |
94 | 96 | public function getMLVariable($key) |
95 | 97 | { |
@@ -99,6 +101,9 @@ discard block |
||
99 | 101 | |
100 | 102 | } |
101 | 103 | |
104 | + /** |
|
105 | + * @param string $key |
|
106 | + */ |
|
102 | 107 | public function setMLVariable($key, $value, $lang = null) |
103 | 108 | { |
104 | 109 | if (!$this->getId()) { |
@@ -13,6 +13,9 @@ |
||
13 | 13 | |
14 | 14 | private $module; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $template |
|
18 | + */ |
|
16 | 19 | public function widgetPartial($template, array $data = array()) |
17 | 20 | { |
18 | 21 | return $this->helper->modulePartial($template, $data, $this->module); |
@@ -280,7 +280,7 @@ |
||
280 | 280 | } |
281 | 281 | |
282 | 282 | /** |
283 | - * @param mixed $primary |
|
283 | + * @param integer $primary |
|
284 | 284 | */ |
285 | 285 | public function setPrimary($primary) |
286 | 286 | { |
@@ -34,6 +34,9 @@ discard block |
||
34 | 34 | return $translates[$lang]; |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $phrase |
|
39 | + */ |
|
37 | 40 | public function findByPhraseAndLang($phrase, $lang = null) |
38 | 41 | { |
39 | 42 | if (!$lang) { |
@@ -97,7 +100,7 @@ discard block |
||
97 | 100 | } |
98 | 101 | |
99 | 102 | /** |
100 | - * @param mixed $phrase |
|
103 | + * @param string $phrase |
|
101 | 104 | */ |
102 | 105 | public function setPhrase($phrase) |
103 | 106 | { |
@@ -350,6 +350,9 @@ discard block |
||
350 | 350 | $this->saveImage($image, $originalAbsPath); |
351 | 351 | } |
352 | 352 | |
353 | + /** |
|
354 | + * @param string $originalAbsPath |
|
355 | + */ |
|
353 | 356 | private function checkOriginalExists($originalAbsPath) |
354 | 357 | { |
355 | 358 | if (!file_exists($originalAbsPath)) { |
@@ -362,6 +365,9 @@ discard block |
||
362 | 365 | } |
363 | 366 | } |
364 | 367 | |
368 | + /** |
|
369 | + * @param string $originalAbsPath |
|
370 | + */ |
|
365 | 371 | private function saveImage($image, $originalAbsPath) |
366 | 372 | { |
367 | 373 | // Если оригинал не заблокирован, блокируем. Это необходимо для предотвращения множественной генерации кеш-файла параллельными запросами |