public function accountAction() { $form = $this->getAccountUpdateForm(); $user = $this->getUser(); $user->update(); $data = array('firstname' => $user->getFirstname(), 'lastname' => $user->getLastname(), 'organisation' => $user->getOrganisation()); $form->setDefaults($data); if (!isset($this->view->accountupdateform)) { $this->view->accountupdateform = $form; } $this->view->access = array(); $this->view->mashups = array(); $m_list = array(); $m_raw = $this->getLA()->getMashupsForUser($this->getUserId()); foreach ($m_raw as $m) { $m_list[$m->getUri()] = $m; } $conn = $this->getDB(); $access = new Model_Access(); $list = $access->findAll("mashup"); foreach ($list as $ac) { if (isset($m_list[$ac->getMashup()])) { $ac->setMashupInstance($m_list[$ac->getMashup()]); $this->view->access[] = $ac; } } foreach ($m_list as $m) { if (!isset($this->view->access[$m->getUri()])) { $this->view->mashups[] = $m; } } $this->getLog()->info("User account page displayed"); }