aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/MessagesModel.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-10-13 07:50:44 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-10-13 07:50:44 +0000
commit086b034d3ba202e81e656ce99bb8933089263edf (patch)
treee19a3f5c19ce88720a7360fdf896776bb5eeb5a5 /h-source/Application/Models/MessagesModel.php
parent9e0955c96d888fc2e00014498d095a7d65ab48fb (diff)
improved history
Diffstat (limited to 'h-source/Application/Models/MessagesModel.php')
-rw-r--r--h-source/Application/Models/MessagesModel.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/h-source/Application/Models/MessagesModel.php b/h-source/Application/Models/MessagesModel.php
index 989facc..b36e76e 100644
--- a/h-source/Application/Models/MessagesModel.php
+++ b/h-source/Application/Models/MessagesModel.php
@@ -20,7 +20,7 @@
if (!defined('EG')) die('Direct access not allowed!');
-class MessagesModel extends Model_Tree {
+class MessagesModel extends BaseModel {
public function __construct() {
$this->_tables = 'messages';
@@ -49,6 +49,15 @@ class MessagesModel extends Model_Tree {
{
return parent::update($id);
}
+
+ public function insert()
+ {
+ if (parent::insert())
+ {
+ //update the history
+ $this->updateHistory('message_ins');
+ }
+ }
public $formStruct = array(
'entries' => array(