src/HabboParser.php
public function parseAchievements($id)
    {
        $achievements = array();

        list($data) = $this->_callUrl($this->api_base . '/api/public/achievements/' . $id, true);

        if ($data) {
            foreach ($data as $ach) {
                $tmp_ach = new Achievement();
                $tmp_ach->parse($ach);
                $achievements[] = $tmp_ach;
                unset($tmp_ach);
            }
        }

        return $achievements;
    }
public function parseAchievements($id)
    {
        $achievements = array();

        list($data) = $this->_callUrl($this->api_base . '/api/public/achievements/' . $id, true);

        if ($data) {
            foreach ($data as $ach) {
                $tmp_ach = new Achievement();
                $tmp_ach->parse($ach);
                $achievements[] = $tmp_ach;
                unset($tmp_ach);
            }
        }

        return $achievements;
    }
public function parseAchievements ( $ id ) { $ achievements = array ( ) ; list ( $ data ) = $ this -> _callUrl ( $ this -> api_base . '/api/public/achievements/' . $ id , true ) ; if ( $ data ) { foreach ( $ data as $ ach ) { $ tmp_ach = new Achievement ( ) ; $ tmp_ach -> parse ( $ ach ) ; $ achievements [ ] = $ tmp_ach ; unset ( $ tmp_ach ) ; } } return $ achievements ; }
parseAchievements will return a list of achievements belonging to a Habbo

@param $id
@return Achievement[]
@throws Exception
parseAchievements will return a list of achievements belonging to a Habbo