This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/models/Post/ChangeSequenceMethods.php

19 lines
549 B
PHP
Raw Permalink Normal View History

2013-10-27 01:06:58 +02:00
<?php
trait PostChangeSequenceMethods
{
public $increment_change_seq;
public function touch_change_seq()
{
$this->increment_change_seq = true;
}
# iTODO
public function update_change_seq()
{
if (!$this->increment_change_seq)
return;
// self::connection()->executeSql("UPDATE posts SET change_seq = nextval('post_change_seq') WHERE id = ?", $this->id);
// $this->change_seq = self::connection()->selectValue("SELECT change_seq FROM posts WHERE id = ?", $this->id);
}
}