add method Realtime_channel::touch()

This commit is contained in:
Evan Prodromou 2011-07-13 13:55:03 -04:00
parent 85ea41ea46
commit 07796250fd

View File

@ -230,13 +230,18 @@ class Realtime_channel extends Managed_DataObject
}
if ($channel->find(true)) {
// Touch it!
$orig = clone($channel);
$channel->modified = common_sql_now();
$channel->update($orig);
$channel->touch();
return $channel;
} else {
return null;
}
}
function touch()
{
// Touch it!
$orig = clone($this);
$this->modified = common_sql_now();
$this->update($orig);
}
}