add method Realtime_channel::touch()
This commit is contained in:
parent
85ea41ea46
commit
07796250fd
@ -230,13 +230,18 @@ class Realtime_channel extends Managed_DataObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($channel->find(true)) {
|
if ($channel->find(true)) {
|
||||||
// Touch it!
|
$channel->touch();
|
||||||
$orig = clone($channel);
|
|
||||||
$channel->modified = common_sql_now();
|
|
||||||
$channel->update($orig);
|
|
||||||
return $channel;
|
return $channel;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function touch()
|
||||||
|
{
|
||||||
|
// Touch it!
|
||||||
|
$orig = clone($this);
|
||||||
|
$this->modified = common_sql_now();
|
||||||
|
$this->update($orig);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user