public function getNamedUsersList($url)
    {
        $out = '';
        $conditions = ['and',
            [Activity::tableName() . '.anonymous' => 0],
            ['is not', 'user_id', null],
            ['like', 'url', $url . '%', false],
            ['>=', Activity::tableName() . '.updated_at', time() - 5 * 60]
        ];

        if (!Podium::getInstance()->user->isGuest) {
            $this->_guest = false;
            $me = User::findMe();
            $conditions[] = ['!=', 'user_id', $me->id];
            if (!empty($me->meta) && $me->meta->anonymous == 0) {
                $out .= $me->podiumTag . ' ';
            } else {
                $this->_anon = true;
            }
        }

        $users = Activity::find()
                    ->joinWith(['user'])
                    ->where($conditions);
        foreach ($users->each() as $user) {
            $out .= $user->user->podiumTag . ' ';
        }

        return $out;
    }
public function getNamedUsersList($url)
    {
        $out = '';
        $conditions = ['and',
            [Activity::tableName() . '.anonymous' => 0],
            ['is not', 'user_id', null],
            ['like', 'url', $url . '%', false],
            ['>=', Activity::tableName() . '.updated_at', time() - 5 * 60]
        ];

        if (!Podium::getInstance()->user->isGuest) {
            $this->_guest = false;
            $me = User::findMe();
            $conditions[] = ['!=', 'user_id', $me->id];
            if (!empty($me->meta) && $me->meta->anonymous == 0) {
                $out .= $me->podiumTag . ' ';
            } else {
                $this->_anon = true;
            }
        }

        $users = Activity::find()
                    ->joinWith(['user'])
                    ->where($conditions);
        foreach ($users->each() as $user) {
            $out .= $user->user->podiumTag . ' ';
        }

        return $out;
    }
public function getNamedUsersList ( $ url ) { $ out = '' ; $ conditions = [ 'and' , [ Activity :: tableName ( ) . '.anonymous' => 0 ] , [ 'is not' , 'user_id' , null ] , [ 'like' , 'url' , $ url . '%' , false ] , [ '>=' , Activity :: tableName ( ) . '.updated_at' , time ( ) - 5 * 60 ] ] ; if ( ! Podium :: getInstance ( ) -> user -> isGuest ) { $ this -> _guest = false ; $ me = User :: findMe ( ) ; $ conditions [ ] = [ '!=' , 'user_id' , $ me -> id ] ; if ( ! empty ( $ me -> meta ) && $ me -> meta -> anonymous == 0 ) { $ out .= $ me -> podiumTag . ' ' ; } else { $ this -> _anon = true ; } } $ users = Activity :: find ( ) -> joinWith ( [ 'user' ] ) -> where ( $ conditions ) ; foreach ( $ users -> each ( ) as $ user ) { $ out .= $ user -> user -> podiumTag . ' ' ; } return $ out ; }
Returns formatted list of named users browsing given url group.
@param string $url
@return string
@since 0.2
Returns formatted list of named users browsing given url group .