Completed
Push — work-fleets ( 006942...3604bd )
by SuperNova.WS
06:54
created
classes/db_mysql.php 1 patch
Doc Comments   +22 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
   /**
165 165
    * @param string $query
166 166
    *
167
-   * @return mixed|string
167
+   * @return string
168 168
    */
169 169
   public function replaceTablePlaceholders($query) {
170 170
     $sql = $query;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
   }
179 179
 
180 180
   /**
181
-   * @param $query
181
+   * @param string $query
182 182
    */
183 183
   protected function logQuery($query) {
184 184
     if (!classSupernova::$config->debug) {
@@ -290,6 +290,7 @@  discard block
 block discarded – undo
290 290
    * @param array  $fields
291 291
    * @param array  $where
292 292
    * @param bool   $isOneRecord
293
+   * @param boolean $forUpdate
293 294
    *
294 295
    * @return array|bool|mysqli_result|null
295 296
    *
@@ -332,6 +333,10 @@  discard block
 block discarded – undo
332 333
 
333 334
   //
334 335
   // INSERT/REPLACE ----------------------------------------------------------------------------------------------------
336
+
337
+  /**
338
+   * @param string $query
339
+   */
335 340
   public function doInsertComplex($query) {
336 341
     return $this->doSql($query);
337 342
   }
@@ -408,7 +413,7 @@  discard block
 block discarded – undo
408 413
    * Self-contained - means no params used
409 414
    * Such queries usually used to make large amount of in-base calculations
410 415
    *
411
-   * @param $query
416
+   * @param string $query
412 417
    *
413 418
    * @return array|bool|mysqli_result|null
414 419
    */
@@ -425,13 +430,16 @@  discard block
 block discarded – undo
425 430
   }
426 431
 
427 432
   /**
428
-   * @param $DbQuery DbQuery
433
+   * @param DbQuery $DbQuery DbQuery
429 434
    */
430 435
   public function doUpdateDbQueryAdjust($DbQuery) {
431 436
     return $this->doUpdateDbQuery($DbQuery);
432 437
   }
433 438
 
434 439
 
440
+  /**
441
+   * @param boolean $isOneRecord
442
+   */
435 443
   protected function doUpdateWhere($table, $fieldsSet, $fieldsAdjust = array(), $where = array(), $isOneRecord = DB_RECORDS_ALL, $whereDanger = array()) {
436 444
     $query = DbQuery::build($this)
437 445
       ->setTable($table)
@@ -450,6 +458,9 @@  discard block
 block discarded – undo
450 458
     return $this->doUpdateWhere($table, $fieldsAndValues, array(), $where, DB_RECORD_ONE);
451 459
   }
452 460
 
461
+  /**
462
+   * @param string $table
463
+   */
453 464
   public function doUpdateTableSet($table, $fieldsAndValues, $where = array()) {
454 465
     return $this->doUpdateWhere($table, $fieldsAndValues, array(), $where, DB_RECORDS_ALL);
455 466
   }
@@ -559,6 +570,10 @@  discard block
 block discarded – undo
559 570
   //
560 571
   // OTHER FUNCTIONS ----------------------------------------------------------------------------------------------------------
561 572
   // TODO Заменить это на новый логгер
573
+
574
+  /**
575
+   * @param string $query
576
+   */
562 577
   protected function security_watch_user_queries($query) {
563 578
     global $user;
564 579
 
@@ -582,6 +597,9 @@  discard block
 block discarded – undo
582 597
   }
583 598
 
584 599
 
600
+  /**
601
+   * @param string $query
602
+   */
585 603
   public function security_query_check_bad_words($query) {
586 604
     if ($this->skipQueryCheck) {
587 605
       return;
Please login to merge, or discard this patch.