src/MalScraper/Model/User/FriendModel.php
private function getAllInfo()
    {
        $friend = [];
        $friend_area = $this->_parser->find('.majorPad', 0);
        if ($friend_area) {
            foreach ($friend_area->find('.friendHolder') as $f) {
                $f_dump = [];
                $f = $f->find('.friendBlock', 0);

                $f_dump['image'] = $this->getImage($f);
                $f_dump['name'] = $this->getName($f);
                $f_dump['last_online'] = $this->getLastOnline($f);
                $f_dump['friend_since'] = $this->getFriendSince($f);

                $friend[] = $f_dump;
            }
        }

        return $friend;
    }
private function getAllInfo()
    {
        $friend = [];
        $friend_area = $this->_parser->find('.majorPad', 0);
        if ($friend_area) {
            foreach ($friend_area->find('.friendHolder') as $f) {
                $f_dump = [];
                $f = $f->find('.friendBlock', 0);

                $f_dump['image'] = $this->getImage($f);
                $f_dump['name'] = $this->getName($f);
                $f_dump['last_online'] = $this->getLastOnline($f);
                $f_dump['friend_since'] = $this->getFriendSince($f);

                $friend[] = $f_dump;
            }
        }

        return $friend;
    }
private function getAllInfo ( ) { $ friend = [ ] ; $ friend_area = $ this -> _parser -> find ( '.majorPad' , 0 ) ; if ( $ friend_area ) { foreach ( $ friend_area -> find ( '.friendHolder' ) as $ f ) { $ f_dump = [ ] ; $ f = $ f -> find ( '.friendBlock' , 0 ) ; $ f_dump [ 'image' ] = $ this -> getImage ( $ f ) ; $ f_dump [ 'name' ] = $ this -> getName ( $ f ) ; $ f_dump [ 'last_online' ] = $ this -> getLastOnline ( $ f ) ; $ f_dump [ 'friend_since' ] = $ this -> getFriendSince ( $ f ) ; $ friend [ ] = $ f_dump ; } } return $ friend ; }
Get user friend list.

@return array
Get user friend list .