@@ -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); |
@@ -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 | { |
@@ -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) |
@@ -137,6 +137,10 @@ |
||
137 | 137 | return $this->createRequest($query); |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param string $action |
|
142 | + * @param string $table |
|
143 | + */ |
|
140 | 144 | public function createQuery($action, $table, array $options = []) |
141 | 145 | { |
142 | 146 | $class = $this->db->queryClass; |
@@ -105,6 +105,9 @@ discard block |
||
105 | 105 | return $rows; |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param \yii\db\Connection $db |
|
110 | + */ |
|
108 | 111 | public function searchAll($db = null) |
109 | 112 | { |
110 | 113 | return $this->searchBatch($db)->getData(); |
@@ -153,6 +156,10 @@ discard block |
||
153 | 156 | return $this; |
154 | 157 | } |
155 | 158 | |
159 | + /** |
|
160 | + * @param string $name |
|
161 | + * @param boolean $value |
|
162 | + */ |
|
156 | 163 | public function addOption($name, $value) |
157 | 164 | { |
158 | 165 | if (!isset($this->options[$name])) { |