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

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

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