diff options
author | Andrew Dolgov <[email protected]> | 2020-09-22 14:54:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-22 14:54:15 +0300 |
commit | 6811d0bde220d7632b9d6a7fa4f4931cc96324c8 (patch) | |
tree | 84e66e1427ea53c0a2a0473cabade723d1e6ce47 /classes/counters.php | |
parent | b5710baf3439343bbc65c2fc1586aefd0b94d99c (diff) |
use self:: in some places to invoke static methods from the same class
Diffstat (limited to 'classes/counters.php')
-rw-r--r-- | classes/counters.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/classes/counters.php b/classes/counters.php index 4518fa9d2..4d37e407b 100644 --- a/classes/counters.php +++ b/classes/counters.php @@ -2,12 +2,12 @@ class Counters { static function getAllCounters() { - $data = Counters::getGlobalCounters(); + $data = self::getGlobalCounters(); - $data = array_merge($data, Counters::getVirtCounters()); - $data = array_merge($data, Counters::getLabelCounters()); - $data = array_merge($data, Counters::getFeedCounters()); - $data = array_merge($data, Counters::getCategoryCounters()); + $data = array_merge($data, self::getVirtCounters()); + $data = array_merge($data, self::getLabelCounters()); + $data = array_merge($data, self::getFeedCounters()); + $data = array_merge($data, self::getCategoryCounters()); return $data; } @@ -23,7 +23,7 @@ class Counters { $marked = 0; while ($line = $sth->fetch()) { - list ($tmp_unread, $tmp_marked) = Counters::getCategoryChildrenCounters($line["id"], $owner_uid); + list ($tmp_unread, $tmp_marked) = self::getCategoryChildrenCounters($line["id"], $owner_uid); $unread += $tmp_unread + Feeds::getCategoryUnread($line["id"], $owner_uid); $marked += $tmp_marked + Feeds::getCategoryMarked($line["id"], $owner_uid); @@ -68,7 +68,7 @@ class Counters { while ($line = $sth->fetch()) { if ($line["num_children"] > 0) { - list ($child_counter, $child_marked_counter) = Counters::getCategoryChildrenCounters($line["id"], $_SESSION["uid"]); + list ($child_counter, $child_marked_counter) = self::getCategoryChildrenCounters($line["id"], $_SESSION["uid"]); } else { $child_counter = 0; $child_marked_counter = 0; |