function deleteForm($elementName = "") { global $gorumroll; $this->id = $gorumroll->rollid; if ($this->load()) { handleErrorNotFound($this, __FILE__, __LINE__); } $this->hasObjectRights($hasRight, "delete", TRUE); $this->generDeleteForm($elementName); }
function modifyForm() { global $gorumroll, $customfield_typ; $this->id = $gorumroll->rollid; if (!Roll::isPreviousFormSubmitInvalid()) { if ($this->load()) { handleErrorNotFound($this, __FILE__, __LINE__); } } $this->hasObjectRights($hasRight, "modify", TRUE); $this->initializeMultipleSelectionFieldsAndDefaults(); JavaScript::addInclude(GORUM_JS_DIR . "/jquery/json.js"); JavaScript::addInclude(JS_DIR . "/propagate.js"); JavaScript::addOnload('$.noah.submitOptionValueModificationStack();'); if ($this->isFixField()) { $customfield_typ["attributes"]["values"][] = "form invisible"; } $this->generForm(); if ($this->isFixField()) { Roll::setInfoText("customfield_fixInfoText"); } }
function modifyForm($elementName = "") { global $gorumroll, $user_typ, $emailAccount, $gorumuser; $this->id = $gorumroll->rollid ? $gorumroll->rollid : $gorumuser->id; hasAdminRights($isAdm); $this->hasObjectRights($hasRight, "modify", TRUE); $this->activateVariableFields(); $this->initClassVars(); if (!Roll::isPreviousFormSubmitInvalid()) { $ret = $this->load(); if ($ret) { handleErrorNotFound($this, __FILE__, __LINE__); } } if (!$isAdm && !$emailAccount) { $user_typ["attributes"]["email"][] = "modify_form: form invisible"; } // A password mezok kezdetben mindig uresek: $this->password = $this->passwordCopy = ""; $this->addDeletePictureStuff(); $this->addDeleteMediaStuff(); $this->generForm($elementName); }