| @@ -58,6 +58,10 @@ | ||
| 58 | 58 |          self::command('install', false, $path); | 
| 59 | 59 | } | 
| 60 | 60 | |
| 61 | + /** | |
| 62 | + * @param string $command | |
| 63 | + * @param string $path | |
| 64 | + */ | |
| 61 | 65 | static function command($command, $needOutput = true, $path = null) | 
| 62 | 66 |      { | 
| 63 | 67 | include_once 'composer/vendor/autoload.php'; | 
| @@ -216,6 +216,7 @@ | ||
| 216 | 216 | * @param $number Integer Число на основе которого нужно сформировать окончание | 
| 217 | 217 | * @param $endingsArray Array Массив слов или окончаний для чисел (1, 4, 5), | 
| 218 | 218 |       *         например array('яблоко', 'яблока', 'яблок') | 
| 219 | + * @param string[] $endingArray | |
| 219 | 220 | * @return String | 
| 220 | 221 | */ | 
| 221 | 222 | static function getNumEnding($number, $endingArray) | 
| @@ -29,6 +29,9 @@ discard block | ||
| 29 | 29 | public $params = []; | 
| 30 | 30 | public $distinct = false; | 
| 31 | 31 | |
| 32 | + /** | |
| 33 | + * @param $instance | |
| 34 | + */ | |
| 32 | 35 | function __construct($instance = null) | 
| 33 | 36 |      { | 
| 34 | 37 |          if (!$instance) { | 
| @@ -47,6 +50,9 @@ discard block | ||
| 47 | 50 | return $this->curInstance->pdo->lastInsertId(); | 
| 48 | 51 | } | 
| 49 | 52 | |
| 53 | + /** | |
| 54 | + * @param string $table | |
| 55 | + */ | |
| 50 | 56 | public function select($table) | 
| 51 | 57 |      { | 
| 52 | 58 | $this->operation = 'SELECT'; | 
| @@ -45,6 +45,10 @@ | ||
| 45 | 45 | return $modelCols; | 
| 46 | 46 | } | 
| 47 | 47 | |
| 48 | + /** | |
| 49 | + * @param string $colPrefix | |
| 50 | + * @param string $tableName | |
| 51 | + */ | |
| 48 | 52 | function parseColsForTable($cols, $colPrefix, $tableName) | 
| 49 | 53 |      { | 
| 50 | 54 | |
| @@ -23,6 +23,9 @@ | ||
| 23 | 23 | public $attributes = []; | 
| 24 | 24 | public $indexCol = null; | 
| 25 | 25 | |
| 26 | + /** | |
| 27 | + * @param string[] $cols | |
| 28 | + */ | |
| 26 | 29 | function setCols($cols) | 
| 27 | 30 |      { | 
| 28 | 31 | $this->cols = $cols; | 
| @@ -147,6 +147,9 @@ discard block | ||
| 147 | 147 | return $result[1]; | 
| 148 | 148 | } | 
| 149 | 149 | |
| 150 | + /** | |
| 151 | + * @param string $source | |
| 152 | + */ | |
| 150 | 153 | function parseSource($source) | 
| 151 | 154 |      { | 
| 152 | 155 | $tags = $this->parseRaw($source); | 
| @@ -190,6 +193,9 @@ discard block | ||
| 190 | 193 | return substr($source, ( $pos + strlen($rawTag) + 2)); | 
| 191 | 194 | } | 
| 192 | 195 | |
| 196 | + /** | |
| 197 | + * @param string $type | |
| 198 | + */ | |
| 193 | 199 | function getHref($type, $params) | 
| 194 | 200 |      { | 
| 195 | 201 | $href = ''; | 
| @@ -531,6 +537,9 @@ discard block | ||
| 531 | 537 | echo round(( microtime(true) - INJI_TIME_START), 4); | 
| 532 | 538 | } | 
| 533 | 539 | |
| 540 | + /** | |
| 541 | + * @param string $type | |
| 542 | + */ | |
| 534 | 543 | function customAsset($type, $asset, $lib = false) | 
| 535 | 544 |      { | 
| 536 | 545 |          if (!$lib) { | 
| @@ -549,6 +558,9 @@ discard block | ||
| 549 | 558 | } | 
| 550 | 559 | } | 
| 551 | 560 | |
| 561 | + /** | |
| 562 | + * @param string $lineParams | |
| 563 | + */ | |
| 552 | 564 | function widget($_widgetName, $_params = [], $lineParams = null) | 
| 553 | 565 |      { | 
| 554 | 566 | $_paths = $this->getWidgetPaths($_widgetName); | 
| @@ -31,6 +31,9 @@ | ||
| 31 | 31 | return $return; | 
| 32 | 32 | } | 
| 33 | 33 | |
| 34 | + /** | |
| 35 | + * @param string $path | |
| 36 | + */ | |
| 34 | 37 | static function parseClass($path) | 
| 35 | 38 |      { | 
| 36 | 39 | $code = file_get_contents($path); | 
| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <div class = 'callbacks'> | 
| 2 | 2 | <h1>Отзывы</h1> | 
| 3 | 3 | <?php | 
| 4 | - $callbacks = Callbacks\Callback::getList(['where' => ['view', '1'], 'order' => ['weight', 'asc']]); | |
| 5 | -  foreach ($callbacks as $callback) { | |
| 6 | -      echo "<h3>{$callback->name}<div class = 'time'>{$callback->date_create}</div></h3>"; | |
| 7 | - echo "<p>" . nl2br($callback->text) . "</p>"; | |
| 8 | - } | |
| 9 | - ?> | |
| 4 | + $callbacks = Callbacks\Callback::getList(['where' => ['view', '1'], 'order' => ['weight', 'asc']]); | |
| 5 | +    foreach ($callbacks as $callback) { | |
| 6 | +        echo "<h3>{$callback->name}<div class = 'time'>{$callback->date_create}</div></h3>"; | |
| 7 | + echo "<p>" . nl2br($callback->text) . "</p>"; | |
| 8 | + } | |
| 9 | + ?> | |
| 10 | 10 | </div> | 
| 11 | 11 | <h3>Можете и вы в свободной форме оставить свой отзыв</h3> | 
| 12 | 12 | <?php | 
| @@ -17,9 +17,9 @@ | ||
| 17 | 17 | <input class ="form-control" type = 'text' name = 'site_description' value = '<?php if (!empty(\App::$primary->config['site']['description'])) echo \App::$primary->config['site']['description']; ?>' /> | 
| 18 | 18 | </div> | 
| 19 | 19 | <?php | 
| 20 | - $form = new Ui\Form(); | |
| 21 | -  $form->input('image', 'site_logo', 'Лого сайта', ['value' => !empty(\App::$primary->config['site']['site_logo']) ? \App::$primary->config['site']['site_logo'] : '']); | |
| 22 | - ?> | |
| 20 | + $form = new Ui\Form(); | |
| 21 | +    $form->input('image', 'site_logo', 'Лого сайта', ['value' => !empty(\App::$primary->config['site']['site_logo']) ? \App::$primary->config['site']['site_logo'] : '']); | |
| 22 | + ?> | |
| 23 | 23 | <h2>Дополнительные мета теги</h2> | 
| 24 | 24 | <div class ="form-group"> | 
| 25 | 25 | <button type = 'button' class = 'btn btn-primary ' onclick = 'addMeta()'>Добавить <i class = 'glyphicon glyphicon-plus'></i></button> |