@@ -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])) { |
@@ -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); |
@@ -207,6 +207,9 @@ |
||
207 | 207 | return $result === false ? false : true; |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @param string $defaultScenario |
|
212 | + */ |
|
210 | 213 | public function batchQuery($defaultScenario, $data = [], array $options = []) |
211 | 214 | { |
212 | 215 | $options['batch'] = true; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | protected $_errorChecker; |
79 | 79 | |
80 | 80 | /** |
81 | - * @param null $name |
|
81 | + * @param string $name |
|
82 | 82 | * @return ConnectionInterface|AbstractConnection |
83 | 83 | */ |
84 | 84 | public static function getDb($name = null, $class = ConnectionInterface::class) |