umbrello  2.31.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
phpwriter.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002 Heiko Nardmann <h.nardmann@secunet.de> *
8  * copyright (C) 2003-2020 *
9  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10  ***************************************************************************/
11 
12 #ifndef PHPWRITER_H
13 #define PHPWRITER_H
14 
15 #include "simplecodegenerator.h"
16 #include "umlattributelist.h"
17 #include "umloperationlist.h"
18 
24 {
25  Q_OBJECT
26 public:
27 
28  PhpWriter();
29  virtual ~PhpWriter();
30 
31  virtual void writeClass(UMLClassifier *c);
32 
34 
35  virtual QStringList reservedKeywords() const;
36 
37 private:
38  void writeOperations(UMLClassifier *c, QTextStream &php);
39  void writeOperations(const QString& classname,
40  UMLOperationList &opList,
41  QTextStream &php);
42 
43  void writeAttributes(UMLClassifier *c, QTextStream &php);
44  void writeAttributes(UMLAttributeList &atList, QTextStream &php);
45 };
46 
47 #endif //PHPWRITER
Information for a non-graphical Concept/Class.
Definition: classifier.h:39
Enum
Definition: basictypes.h:271
Definition: simplecodegenerator.h:33
Definition: umlattributelist.h:26
virtual Uml::ProgrammingLanguage::Enum language() const
Definition: phpwriter.cpp:3344
void writeOperations(UMLClassifier *c, QTextStream &php)
Definition: phpwriter.cpp:3146
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:18
Definition: phpwriter.h:23
virtual void writeClass(UMLClassifier *c)
Definition: phpwriter.cpp:2992
virtual ~PhpWriter()
Definition: phpwriter.cpp:2984
void writeAttributes(UMLClassifier *c, QTextStream &php)
Definition: phpwriter.cpp:3267
PhpWriter()
Definition: phpwriter.cpp:2980
virtual QStringList reservedKeywords() const
Definition: phpwriter.cpp:3353