@@ -76,6 +76,9 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $modelName |
|
| 81 | + */ |
|
| 79 | 82 | public function get($modelName, $primaryKey, $options) |
| 80 | 83 | { |
| 81 | 84 | return $this->db->post($modelName . 'GetInfo', ArrayHelper::merge(['id' => $primaryKey], $options)); |
@@ -106,7 +109,7 @@ discard block |
||
| 106 | 109 | } |
| 107 | 110 | |
| 108 | 111 | /** |
| 109 | - * @param $action |
|
| 112 | + * @param string $action |
|
| 110 | 113 | * @param array $options |
| 111 | 114 | * |
| 112 | 115 | * @return mixed |
@@ -27,6 +27,9 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | public $db; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param Connection $connection |
|
| 32 | + */ |
|
| 30 | 33 | public function __construct($connection, $config = []) |
| 31 | 34 | { |
| 32 | 35 | $this->db = $connection; |
@@ -59,6 +62,9 @@ discard block |
||
| 59 | 62 | ]; |
| 60 | 63 | } |
| 61 | 64 | |
| 65 | + /** |
|
| 66 | + * @param integer $limit |
|
| 67 | + */ |
|
| 62 | 68 | public function buildLimit($limit, &$parts) |
| 63 | 69 | { |
| 64 | 70 | if (!empty($limit)) { |
@@ -69,6 +75,10 @@ discard block |
||
| 69 | 75 | } |
| 70 | 76 | } |
| 71 | 77 | |
| 78 | + /** |
|
| 79 | + * @param integer $offset |
|
| 80 | + * @param integer $limit |
|
| 81 | + */ |
|
| 72 | 82 | public function buildPage($offset, $limit, &$parts) |
| 73 | 83 | { |
| 74 | 84 | if ($offset > 0) { |
@@ -206,7 +206,6 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * XXX DEPRECATED in favour of post(). |
| 208 | 208 | * @param $url |
| 209 | - * @param array $query |
|
| 210 | 209 | * @return mixed |
| 211 | 210 | */ |
| 212 | 211 | public function perform($url, $body = []) |
@@ -220,6 +219,7 @@ discard block |
||
| 220 | 219 | * @param array $query query options, (GET parameters) |
| 221 | 220 | * @param string $body request body, (POST parameters) |
| 222 | 221 | * @param bool $raw if response body contains JSON and should be decoded |
| 222 | + * @param string $method |
|
| 223 | 223 | * @throws HiArtException |
| 224 | 224 | * @throws \yii\base\InvalidConfigException |
| 225 | 225 | * @return mixed response |
@@ -233,9 +233,9 @@ discard block |
||
| 233 | 233 | |
| 234 | 234 | /** |
| 235 | 235 | * Creates URL. |
| 236 | - * @param mixed $path path |
|
| 236 | + * @param string $path path |
|
| 237 | 237 | * @param array $query query options |
| 238 | - * @return array |
|
| 238 | + * @return string |
|
| 239 | 239 | */ |
| 240 | 240 | private function prepareUrl($path, array $query = []) |
| 241 | 241 | { |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | |
| 323 | 323 | /** |
| 324 | 324 | * Setter for errorChecker. |
| 325 | - * @param Closure|array $value |
|
| 325 | + * @param Closure $value |
|
| 326 | 326 | * @return void |
| 327 | 327 | */ |
| 328 | 328 | public function setErrorChecker($value) |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | * |
| 146 | 146 | * @throws InvalidConfigException |
| 147 | 147 | * |
| 148 | - * @return string|callable|array |
|
| 148 | + * @return string |
|
| 149 | 149 | * |
| 150 | 150 | * @author SilverFire |
| 151 | 151 | */ |
@@ -11,10 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace hiqdev\hiart; |
| 13 | 13 | |
| 14 | -use yii\base\NotSupportedException; |
|
| 15 | 14 | use yii\db\ActiveQueryInterface; |
| 16 | 15 | use yii\db\ActiveQueryTrait; |
| 17 | -use yii\db\ActiveRecordInterface; |
|
| 18 | 16 | use yii\db\ActiveRelationTrait; |
| 19 | 17 | use yii\helpers\ArrayHelper; |
| 20 | 18 | |