/** * DEPRECATED */ public static function TouchNews($news_id, $touch_stamp = null) { $ret = false; if (!$touch_stamp) { $touch_stamp = time(); } $news = new StudipNews($news_id); if (!$news->isNew()) { $news->setValue('date', mktime(0, 0, 0, strftime("%m", $touch_stamp), strftime("%d", $touch_stamp), strftime("%y", $touch_stamp))); if (!$news->store()) { $news->triggerChdate(); } } return $ret; }