public static function friendsList()
    {
        if (Podium::getInstance()->user->isGuest) {
            return null;
        }
        $logged = static::loggedId();
        $cache = Podium::getInstance()->podiumCache->getElement('user.friends', $logged);
        if ($cache === false) {
            $cache = [];
            $friends = static::findMe()->friends;
            if ($friends) {
                /* @var $friend User */
                foreach ($friends as $friend) {
                    $cache[$friend->id] = $friend->getPodiumTag(true);
                }
            }
            Podium::getInstance()->podiumCache->setElement('user.friends', $logged, $cache);
        }
        return $cache;
    }
public static function friendsList()
    {
        if (Podium::getInstance()->user->isGuest) {
            return null;
        }
        $logged = static::loggedId();
        $cache = Podium::getInstance()->podiumCache->getElement('user.friends', $logged);
        if ($cache === false) {
            $cache = [];
            $friends = static::findMe()->friends;
            if ($friends) {
                /* @var $friend User */
                foreach ($friends as $friend) {
                    $cache[$friend->id] = $friend->getPodiumTag(true);
                }
            }
            Podium::getInstance()->podiumCache->setElement('user.friends', $logged, $cache);
        }
        return $cache;
    }
public static function friendsList ( ) { if ( Podium :: getInstance ( ) -> user -> isGuest ) { return null ; } $ logged = static :: loggedId ( ) ; $ cache = Podium :: getInstance ( ) -> podiumCache -> getElement ( 'user.friends' , $ logged ) ; if ( $ cache === false ) { $ cache = [ ] ; $ friends = static :: findMe ( ) -> friends ; if ( $ friends ) { /* @var $friend User */ foreach ( $ friends as $ friend ) { $ cache [ $ friend -> id ] = $ friend -> getPodiumTag ( true ) ; } } Podium :: getInstance ( ) -> podiumCache -> setElement ( 'user.friends' , $ logged , $ cache ) ; } return $ cache ; }
Returns list of friends for dropdown.
@return array
@since 0.2
Returns list of friends for dropdown .