@@ 348-356 (lines=9) @@ | ||
345 | return $this->getHashedPath() . '/v' . $version; |
|
346 | } |
|
347 | ||
348 | public function getTags() |
|
349 | { |
|
350 | $tagsSql = 'SELECT t.id, t.title ' |
|
351 | . ' FROM item_tags it JOIN tags t ON (it.tag=t.id) ' |
|
352 | . ' WHERE it.item=:id ' |
|
353 | . ' ORDER BY t.title ASC '; |
|
354 | $params = ['id' => $this->getId()]; |
|
355 | return $this->db->query($tagsSql, $params)->fetchAll(); |
|
356 | } |
|
357 | ||
358 | public function getTagsString() |
|
359 | { |
|
@@ 441-449 (lines=9) @@ | ||
438 | return isset($this->data->date_granularity) ? $this->data->date_granularity : self::DATE_GRANULARITY_DEFAULT; |
|
439 | } |
|
440 | ||
441 | public function getChangeSets() |
|
442 | { |
|
443 | $sql = 'SELECT * FROM changes c' |
|
444 | .' JOIN changesets cs ON c.changeset = cs.id' |
|
445 | .' JOIN users u ON u.id = cs.user' |
|
446 | .' WHERE item = :id' |
|
447 | .' ORDER BY datetime DESC, cs.id DESC'; |
|
448 | return $this->db->query($sql, ['id'=>$this->getId()])->fetchAll(); |
|
449 | } |
|
450 | } |
|
451 |