@@ -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; |
@@ -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 | // Если оригинал не заблокирован, блокируем. Это необходимо для предотвращения множественной генерации кеш-файла параллельными запросами |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | - * @return mixed |
|
| 146 | + * @return integer |
|
| 147 | 147 | */ |
| 148 | 148 | public function getDepth() |
| 149 | 149 | { |
@@ -146,6 +146,9 @@ |
||
| 146 | 146 | $this->helper->title($this->helper->at('Unpublishing'), true); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param Publication|null $model |
|
| 151 | + */ |
|
| 149 | 152 | private function uploadImage($model) |
| 150 | 153 | { |
| 151 | 154 | if ($this->request->isPost()) { |