| @@ -32,7 +32,7 @@ | ||
| 32 | 32 | public $distinct = false; | 
| 33 | 33 | |
| 34 | 34 | /** | 
| 35 | - * @param $instance | |
| 35 | + * @param $instance | |
| 36 | 36 | */ | 
| 37 | 37 |      public function __construct($instance = null) { | 
| 38 | 38 |          if (!$instance) { | 
| @@ -61,6 +61,10 @@ | ||
| 61 | 61 | Inji::$inst->unBlockParallel(); | 
| 62 | 62 | } | 
| 63 | 63 | |
| 64 | + /** | |
| 65 | + * @param string $command | |
| 66 | + * @param string $path | |
| 67 | + */ | |
| 64 | 68 |      public static function command($command, $needOutput = true, $path = null) { | 
| 65 | 69 |          while (!Inji::$inst->blockParallel()) { | 
| 66 | 70 | sleep(2); | 
| @@ -15,6 +15,9 @@ | ||
| 15 | 15 | |
| 16 | 16 | public $xml = null; | 
| 17 | 17 | |
| 18 | + /** | |
| 19 | + * @param \SimpleXMLElement $xml | |
| 20 | + */ | |
| 18 | 21 |      public function __construct($xml) { | 
| 19 | 22 | $this->xml = $xml; | 
| 20 | 23 | } | 
| @@ -43,6 +43,10 @@ | ||
| 43 | 43 | return $modelCols; | 
| 44 | 44 | } | 
| 45 | 45 | |
| 46 | + /** | |
| 47 | + * @param string $colPrefix | |
| 48 | + * @param string $tableName | |
| 49 | + */ | |
| 46 | 50 |      public function parseColsForTable($cols, $colPrefix, $tableName) { | 
| 47 | 51 | |
| 48 | 52 | $colsExist = App::$cur->db->getTableCols($tableName); | 
| @@ -23,6 +23,9 @@ | ||
| 23 | 23 | public $attributes = []; | 
| 24 | 24 | public $indexCol = null; | 
| 25 | 25 | |
| 26 | + /** | |
| 27 | + * @param string[] $cols | |
| 28 | + */ | |
| 26 | 29 |      public function setCols($cols) { | 
| 27 | 30 | $this->cols = $cols; | 
| 28 | 31 | } | 
| @@ -145,6 +145,9 @@ discard block | ||
| 145 | 145 | return $result[1]; | 
| 146 | 146 | } | 
| 147 | 147 | |
| 148 | + /** | |
| 149 | + * @param string $source | |
| 150 | + */ | |
| 148 | 151 |      public function parseSource($source) { | 
| 149 | 152 | $tags = $this->parseRaw($source); | 
| 150 | 153 |          foreach ($tags as $rawTag) { | 
| @@ -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 |      public function getHref($type, $params) { | 
| 194 | 200 | $href = ''; | 
| 195 | 201 |          if (is_string($params)) { | 
| @@ -518,6 +524,9 @@ discard block | ||
| 518 | 524 | } | 
| 519 | 525 | } | 
| 520 | 526 | |
| 527 | + /** | |
| 528 | + * @param string $type | |
| 529 | + */ | |
| 521 | 530 |      public function customAsset($type, $asset, $lib = false) { | 
| 522 | 531 |          if (!$lib) { | 
| 523 | 532 | $this->dynAssets[$type][] = $asset; | 
| @@ -540,6 +549,9 @@ discard block | ||
| 540 | 549 | } | 
| 541 | 550 | } | 
| 542 | 551 | |
| 552 | + /** | |
| 553 | + * @param string $lineParams | |
| 554 | + */ | |
| 543 | 555 |      public function widget($_widgetName, $_params = [], $lineParams = null) { | 
| 544 | 556 | $_paths = $this->getWidgetPaths($_widgetName); | 
| 545 | 557 | $find = false; | 
| @@ -30,6 +30,9 @@ | ||
| 30 | 30 | return $return; | 
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | + /** | |
| 34 | + * @param string $path | |
| 35 | + */ | |
| 33 | 36 |      public static function parseClass($path) { | 
| 34 | 37 | $code = file_get_contents($path); | 
| 35 | 38 | |
| @@ -233,7 +233,7 @@ | ||
| 233 | 233 | * Getting items with params | 
| 234 | 234 | * | 
| 235 | 235 | * @param array $params | 
| 236 | - * @return array | |
| 236 | + * @return Model[] | |
| 237 | 237 | */ | 
| 238 | 238 |      public function getItems($params = []) { | 
| 239 | 239 | $selectOptions = Ecommerce\OptionsParser::parse($params); | 
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | static $name = 'PickPoint - курьерская служба'; | 
| 17 | 17 | |
| 18 | 18 | /** | 
| 19 | - * @param \Ecommerce\Cart $cart | |
| 19 | + * @param string $URL | |
| 20 | 20 | * @return \Money\Sums | 
| 21 | 21 | */ | 
| 22 | 22 |      static function curl_get_file_contents($URL, $data) { |