summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 9651e33..2f40015 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -1307,8 +1307,15 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
HtmlHelp *htmlHelp = 0;
if (hasHtmlHelp)
{
- htmlHelp = HtmlHelp::getInstance();
- htmlHelp->addIndexItem(ciname,name(),cfiname,cfname,memAnchor);
+ if (isEnumerate() && name().at(0)=='@')
+ {
+ // don't add to index
+ }
+ else
+ {
+ htmlHelp = HtmlHelp::getInstance();
+ htmlHelp->addIndexItem(ciname,name(),cfiname,cfname,memAnchor);
+ }
}
// get member name
@@ -2249,6 +2256,10 @@ bool MemberDef::isConstructor() const
{
return name()=="this";
}
+ else if (fileDef && getLanguageFromFileName(fileDef->name())==SrcLangExt_PHP)
+ { // for PHP
+ return name()=="__construct";
+ }
else // for other languages
{
QCString locName = classDef->localName();
@@ -2273,6 +2284,10 @@ bool MemberDef::isDestructor() const
{
return name()=="~this";
}
+ else if (fileDef && getLanguageFromFileName(fileDef->name())==SrcLangExt_PHP)
+ { // for PHP
+ return name()=="__destruct";
+ }
else // other languages
{
return name().find('~')!=-1 && name().find("operator")==-1;