public static function newInstance()
 {
     if (!self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Esempio n. 2
0
function getItemsView24Hours($item_id)
{
    return UniqueCounter::newInstance()->getItemView24Hours($item_id);
}