コード例 #1
0
ファイル: functions.php プロジェクト: nota-ja/tt-rss
function getAllCounters()
{
    $data = getGlobalCounters();
    $data = array_merge($data, getVirtCounters());
    $data = array_merge($data, getLabelCounters());
    $data = array_merge($data, getFeedCounters());
    $data = array_merge($data, getCategoryCounters());
    return $data;
}
コード例 #2
0
ファイル: rpc.php プロジェクト: nvdnkpr/Tiny-Tiny-RSS
 function getAllCounters()
 {
     $last_article_id = (int) $_REQUEST["last_article_id"];
     $reply = array();
     if ($seq) {
         $reply['seq'] = $seq;
     }
     if ($last_article_id != getLastArticleId($this->link)) {
         $omode = $_REQUEST["omode"];
         if ($omode != "T") {
             $reply['counters'] = getAllCounters($this->link, $omode);
         } else {
             $reply['counters'] = getGlobalCounters($this->link);
         }
     }
     $reply['runtime-info'] = make_runtime_info($this->link);
     print json_encode($reply);
 }
コード例 #3
0
ファイル: functions.php プロジェクト: wangroot/Tiny-Tiny-RSS
function getAllCounters($link, $omode = "flc", $active_feed = false)
{
    if (!$omode) {
        $omode = "flc";
    }
    getGlobalCounters($link);
    getVirtCounters($link);
    if (strchr($omode, "l")) {
        getLabelCounters($link);
    }
    if (strchr($omode, "f")) {
        getFeedCounters($link, $active_feed);
    }
    if (strchr($omode, "t")) {
        getTagCounters($link);
    }
    if (strchr($omode, "c")) {
        if (get_pref($link, 'ENABLE_FEED_CATS')) {
            getCategoryCounters($link);
        }
    }
}
コード例 #4
0
function getAllCounters($link)
{
    $data = getGlobalCounters($link);
    $data = array_merge($data, getVirtCounters($link));
    $data = array_merge($data, getLabelCounters($link));
    $data = array_merge($data, getFeedCounters($link, $active_feed));
    $data = array_merge($data, getCategoryCounters($link));
    return $data;
}
コード例 #5
0
ファイル: functions.php プロジェクト: rolfkleef/Tiny-Tiny-RSS
function getAllCounters($link, $omode = "flc", $active_feed = false)
{
    if (!$omode) {
        $omode = "flc";
    }
    $data = getGlobalCounters($link);
    $data = array_merge($data, getVirtCounters($link));
    if (strchr($omode, "l")) {
        $data = array_merge($data, getLabelCounters($link));
    }
    if (strchr($omode, "f")) {
        $data = array_merge($data, getFeedCounters($link, $active_feed));
    }
    if (strchr($omode, "t")) {
        $data = array_merge($data, getTagCounters($link));
    }
    if (strchr($omode, "c")) {
        $data = array_merge($data, getCategoryCounters($link));
    }
    return $data;
}