CategoryController::markRead PHP Method

markRead() public method

public markRead ( $CategoryID, $TKey )
    public function markRead($CategoryID, $TKey)
    {
        if (Gdn::session()->validateTransientKey($TKey)) {
            $this->CategoryModel->SaveUserTree($CategoryID, array('DateMarkedRead' => Gdn_Format::toDateTime()));
        }
        if ($this->deliveryType() == DELIVERY_TYPE_ALL) {
            redirect('/categories');
        }
        $this->render();
    }