| @@ 196-204 (lines=9) @@ | ||
| 193 | } |
|
| 194 | ||
| 195 | // Обновление даты обновления категории |
|
| 196 | public function updateDateupdated($cid = 0, $time = null) |
|
| 197 | { |
|
| 198 | // Если не передали время |
|
| 199 | $time = null === $time ? time() : (int)$time; |
|
| 200 | // |
|
| 201 | $sql = sprintf('UPDATE `%s` SET `dateupdated` = %u WHERE `cid` = %u', $this->table, $time, (int)$cid); |
|
| 202 | // |
|
| 203 | return $this->db->query($sql); |
|
| 204 | } |
|
| 205 | } |
|
| 206 | ||
| @@ 133-141 (lines=9) @@ | ||
| 130 | } |
|
| 131 | ||
| 132 | // Обновление даты обновления инструкций |
|
| 133 | public function updateDateupdated($instrid = 0, $time = null) |
|
| 134 | { |
|
| 135 | // Если не передали время |
|
| 136 | $time = null === $time ? time() : (int)$time; |
|
| 137 | // |
|
| 138 | $sql = sprintf('UPDATE `%s` SET `dateupdated` = %u WHERE `instrid` = %u', $this->table, $time, (int)$instrid); |
|
| 139 | // |
|
| 140 | return $this->db->query($sql); |
|
| 141 | } |
|
| 142 | ||
| 143 | // Обновление числа страниц |
|
| 144 | public function updatePages($instrid = 0) |
|