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
2013-10-26 18:06:58 -05:00

19 lines
549 B
PHP
Executable File

<?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);
}
}