예제 #1
0
파일: aaa.php 프로젝트: ram-1501/rs
function getLastNotificationId($username = null)
{
    $lastNotificationId = MultiCache::cache_get('lastNotificationId');
    if (!is_array($lastNotificationId)) {
        $lastNotificationId = array();
    }
    if (!is_null($username)) {
        if (isset($lastNotificationId[$username])) {
            return $lastNotificationId[$username];
        } else {
            return FALSE;
        }
    }
    return $lastNotificationId;
}