@@ -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 | } |
@@ -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; |
@@ -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) { |
@@ -338,6 +338,9 @@ |
||
338 | 338 | return false; |
339 | 339 | } |
340 | 340 | |
341 | + /** |
|
342 | + * @return \Money\Sums |
|
343 | + */ |
|
341 | 344 | public function deliverySum() { |
342 | 345 | $sum = new \Money\Sums([0 => 0]); |
343 | 346 | if ($this->delivery && $this->needDelivery()) { |
@@ -257,6 +257,9 @@ |
||
257 | 257 | return $user; |
258 | 258 | } |
259 | 259 | |
260 | + /** |
|
261 | + * @param boolean $msg |
|
262 | + */ |
|
260 | 263 | private function msgOrErr($err, $msg) { |
261 | 264 | if ($msg) { |
262 | 265 | Msg::add($err, 'danger'); |
@@ -128,6 +128,7 @@ |
||
128 | 128 | * Get cache dir for app |
129 | 129 | * |
130 | 130 | * @param App $app |
131 | + * @param string $dirname |
|
131 | 132 | * @return string |
132 | 133 | */ |
133 | 134 | public static function getDir($dirname, $app = null) { |
@@ -549,6 +549,9 @@ |
||
549 | 549 | return $summarys; |
550 | 550 | } |
551 | 551 | |
552 | + /** |
|
553 | + * @param DataManager $dataManager |
|
554 | + */ |
|
552 | 555 | public static function drawCol($item, $colName, $params = [], $dataManager = null, $originalCol = '', $originalItem = null) { |
553 | 556 | $modelName = get_class($item); |
554 | 557 | if (!class_exists($modelName)) { |
@@ -89,6 +89,9 @@ |
||
89 | 89 | App::$cur->log->forceView = $bool; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param integer $size |
|
94 | + */ |
|
92 | 95 | public function convertSize($size) { |
93 | 96 | |
94 | 97 | if ($size < 1024) { |