public function getAnonymousUsers($url)
    {
        $anons = Activity::find()
                    ->where(['and',
                        ['anonymous' => 1],
                        ['like', 'url', $url . '%', false],
                        ['>=', 'updated_at', time() - 5 * 60]
                    ])
                    ->count('id');
        if ($this->_anon) {
            $anons += 1;
        }

        return $anons;
    }
public function getAnonymousUsers($url)
    {
        $anons = Activity::find()
                    ->where(['and',
                        ['anonymous' => 1],
                        ['like', 'url', $url . '%', false],
                        ['>=', 'updated_at', time() - 5 * 60]
                    ])
                    ->count('id');
        if ($this->_anon) {
            $anons += 1;
        }

        return $anons;
    }
public function getAnonymousUsers ( $ url ) { $ anons = Activity :: find ( ) -> where ( [ 'and' , [ 'anonymous' => 1 ] , [ 'like' , 'url' , $ url . '%' , false ] , [ '>=' , 'updated_at' , time ( ) - 5 * 60 ] ] ) -> count ( 'id' ) ; if ( $ this -> _anon ) { $ anons += 1 ; } return $ anons ; }
Returns number of anonymous users browsing given url group.
@param string $url
@return int
@since 0.2
Returns number of anonymous users browsing given url group .