Changeset f0dadb for OWR/Model.php


Ignore:
Timestamp:
05/09/15 22:17:04 (4 years ago)
Author:
pierre-alain <pierre-alain@…>
Branches:
master
Children:
02a5c3
Parents:
56e582
git-author:
pierre-alain <pierre-alain@…> (05/09/15 22:17:04)
git-committer:
pierre-alain <pierre-alain@…> (05/09/15 22:17:04)
Message:

adding server side check to prevent marking news as unread when user interface is not up to date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OWR/Model.php

    r6fd857 rf0dadb  
    139139        return self::$_cachedModels[$model]; 
    140140    } 
     141 
     142    /** 
     143     * Sets the user's timestamp, which corresponds to the last http request timestamp for this user 
     144     * 
     145     * @author Pierre-Alain Mignot <contact@openwebreader.org> 
     146     * @access public 
     147     * @param array $datas the datas retrieved from DB 
     148     */ 
     149    protected function _setUserTimestamp(array $datas) 
     150    { 
     151        if(isset($datas['id'])) 
     152            User::iGet()->setTimestamp($datas['id']); 
     153        else 
     154        { 
     155            foreach($datas as $data) 
     156                User::iGet()->setTimestamp($data['id']); 
     157        } 
     158    } 
    141159} 
Note: See TracChangeset for help on using the changeset viewer.