public function removeattributeAction() { $attributeType = $this->request->getParam('type'); $attributeID = $this->request->getParam('id'); if (DatabaseObject_Helper_ManageAttribute::confirmattributeidwithuploader($this->db, $attributeType, $this->signedInUserSessionInfoHolder->generalInfo->userID, $attributeID)) { if (DatabaseObject_Helper_ManageAttribute::removeAttributeForUser($this->db, $attributeType, $attributeID, $this->signedInUserSessionInfoHolder->generalInfo->username)) { $this->messenger->addMessage('Your attribute had been removed'); $this->_redirect($_SERVER['HTTP_REFERER']); } } }