public function getEdit($isadmin, $userid, $commid, $htmlcomment)
    {
        $update = $this->setUrlCreator("comm/update");
        if ($isadmin || $userid == $this->sess['id']) {
            $edit = '<p><a href="' . $update . '/' . $commid . '">Redigera</a> | ';
            $edit .= $htmlcomment;
        } else {
            $edit = "<p>" . $htmlcomment . "</p>";
        }
        return $edit;
    }
public function getEdit($isadmin, $userid, $commid, $htmlcomment)
    {
        $update = $this->setUrlCreator("comm/update");
        if ($isadmin || $userid == $this->sess['id']) {
            $edit = '<p><a href="' . $update . '/' . $commid . '">Redigera</a> | ';
            $edit .= $htmlcomment;
        } else {
            $edit = "<p>" . $htmlcomment . "</p>";
        }
        return $edit;
    }
public function getEdit ( $ isadmin , $ userid , $ commid , $ htmlcomment ) { $ update = $ this -> setUrlCreator ( "comm/update" ) ; if ( $ isadmin || $ userid == $ this -> sess [ 'id' ] ) { $ edit = '<p><a href="' . $ update . '/' . $ commid . '">Redigera</a> | ' ; $ edit .= $ htmlcomment ; } else { $ edit = "<p>" . $ htmlcomment . "</p>" ; } return $ edit ; }
If loggedin allowed to edit

@param boolean $isadmin
@param string $userid
@param string $commid
@param string $htmlcomment, link

@return string htmlcode
If loggedin allowed to edit