public function parseAchievementsSummary($ID = null) { if (!$ID) { $ID = $this->getID(); } if (!$ID) { echo "error: No ID Set."; } else { // Get the source $this->getSource($this->URL['character']['profile'] . $ID . $this->URL['character']['achiSummary']); // Create a new character object $Achievements = new Achievements(); // Get Achievements $Public = $Achievements->checkIfPublic($this->findAll('area_inner_tc', 20)); if ($Public) { $Achievements->setSummary($this->findAll('achievement_area_footer', NULL, '/li', false)); // Append character to array return $Achievements; } else { return false; } } }