landing page pricing table, map bug fixes, signature module improvement

This commit is contained in:
exodus4d
2015-06-06 16:47:04 +02:00
parent 34e41a6553
commit 639bff363c
80 changed files with 6168 additions and 6999 deletions

View File

@@ -119,6 +119,22 @@ class BasicModel extends \DB\Cortex{
}
/**
* set "updated" field to current timestamp
* this is useful to mark a row as "changed"
*/
protected function setUpdated(){
if($this->_id > 0){
$f3 = \Base::instance();
$f3->get('DB')->exec(
["UPDATE " . $this->table . " SET updated=NOW() WHERE id=:id"],
[
[':id' => $this->_id]
]
);
}
}
/**
* get single dataSet by id
* @param $id