@@ -109,6 +109,10 @@ |
||
| 109 | 109 | return $this->createRequest($query); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param string $action |
|
| 114 | + * @param string $table |
|
| 115 | + */ |
|
| 112 | 116 | public function perform($action, $table, $body, $options = []) |
| 113 | 117 | { |
| 114 | 118 | $query = $this->createQuery($action, $table, $options)->body($body); |
@@ -130,6 +130,9 @@ |
||
| 130 | 130 | return $this->_viewPath; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | + /** |
|
| 134 | + * @param string $file |
|
| 135 | + */ |
|
| 133 | 136 | public function render($file, $data) |
| 134 | 137 | { |
| 135 | 138 | return Yii::$app->view->render($file, $data, $this); |
@@ -133,6 +133,10 @@ |
||
| 133 | 133 | return $this; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $name |
|
| 138 | + * @param boolean $value |
|
| 139 | + */ |
|
| 136 | 140 | public function addOption($name, $value) |
| 137 | 141 | { |
| 138 | 142 | if (!isset($this->options[$name])) { |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | protected $_errorChecker; |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @param null $dbname |
|
| 81 | + * @param string $dbname |
|
| 82 | 82 | * @return ConnectionInterface|AbstractConnection |
| 83 | 83 | */ |
| 84 | 84 | public static function getDb($dbname = null) |
@@ -87,6 +87,9 @@ |
||
| 87 | 87 | return ($this->isFullUri($this->uri) ? '' : $this->getDb()->getBaseUri()) . $this->uri; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @param string $uri |
|
| 92 | + */ |
|
| 90 | 93 | public function isFullUri($uri) |
| 91 | 94 | { |
| 92 | 95 | return preg_match('/^https?:\\/\\//i', $uri); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @return mixed|string |
|
| 66 | + * @return string |
|
| 67 | 67 | */ |
| 68 | 68 | public function getRawData() |
| 69 | 69 | { |
@@ -235,6 +235,9 @@ discard block |
||
| 235 | 235 | return $result === false ? false : true; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | + /** |
|
| 239 | + * @param string $defaultScenario |
|
| 240 | + */ |
|
| 238 | 241 | public function performScenario($defaultScenario, $data, array $options = []) |
| 239 | 242 | { |
| 240 | 243 | $action = $this->getScenarioAction($defaultScenario); |
@@ -242,6 +245,9 @@ discard block |
||
| 242 | 245 | return static::perform($action, $data, $options); |
| 243 | 246 | } |
| 244 | 247 | |
| 248 | + /** |
|
| 249 | + * @param string $action |
|
| 250 | + */ |
|
| 245 | 251 | public static function perform($action, $data, array $options = []) |
| 246 | 252 | { |
| 247 | 253 | return static::getDb()->createCommand()->perform($action, static::from(), $data, $options); |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use yii\base\Component; |
| 17 | 17 | use yii\base\InvalidConfigException; |
| 18 | 18 | use yii\base\InvalidParamException; |
| 19 | -use yii\helpers\ArrayHelper; |
|
| 20 | 19 | use yii\helpers\Json; |
| 21 | 20 | |
| 22 | 21 | /** |