/** * returns an array of competence objects */ public function getCompetences() { $this->checkCompetence(); $competences = $this->getRoom()->get_object_by_name(PORTFOLIO_PREFIX . "COMPETENCES")->get_inventory(); // $competences = $this->getRoom()->get_attribute(PORTFOLIO_PREFIX . "COMPETENCES"); // $competenceStrings = array_keys($competences); $competencesArray = array(); // print "<pre>"; foreach ($competences as $steamObject) { $rating = $steamObject->get_attribute(PORTFOLIO_PREFIX . "RATING"); // var_dump($steamObject); // print $steamObject->get_name() . "<br>"; $competencesArray[] = CompetenceRaster::getCompetenceByIdRated($steamObject->get_name(), $rating); } // die; return $competencesArray; }