예제 #1
0
 public function profile_action($external_user_id)
 {
     $this->user = new LernmarktplatzUser($external_user_id);
     if ($this->user->isNew()) {
         throw new Exception(_("Nutzer ist nicht erfasst."));
     }
     $this->materials = LernmarktplatzMaterial::findBySQL("user_id = ? AND host_id IS NOT NULL ORDER BY mkdate DESC", array($external_user_id));
 }