#include <php5writer.h>
|
enum | GenerationState { Generated
, Failed
, Skipped
} |
|
virtual void | syncCodeToDocument () |
|
virtual void | syncCodeToDocument () |
|
void | codeGenerated (UMLClassifier *concept, bool generated) |
|
void | codeGenerated (UMLClassifier *concept, CodeGenerator::GenerationState result) |
|
void | showGeneratedFile (const QString &filename) |
|
static QString | cleanName (const QString &name) |
|
static QString | formatDoc (const QString &text, const QString &linePrefix=QLatin1String(" *"), int lineWidth=80) |
|
static QString | formatSourceCode (const QString &code, const QString &indentation) |
|
static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) |
|
QString | findFileName (UMLPackage *concept, const QString &ext) |
|
QString | overwritableName (UMLPackage *concept, const QString &name, const QString &ext) |
|
bool | hasDefaultValueAttr (UMLClassifier *c) |
|
bool | hasAbstractOps (UMLClassifier *c) |
|
QString | indent () |
|
virtual void | initFromParentDocument () |
|
QString | overwritableName (const QString &name, const QString &extension) |
|
bool | openFile (QFile &file, const QString &name) |
|
void | writeListedCodeDocsToFile (CodeDocumentList *docs) |
|
virtual void | finalizeRun () |
|
QString | className_ |
|
QString | fileName_ |
|
QMap< UMLPackage *, QString > | m_fileMap |
|
bool | m_createDirHierarchyForPackages |
|
QString | m_indentation |
|
int | m_indentLevel |
|
QString | m_endl |
|
QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
|
bool | m_applyToAllRemaining |
|
UMLDoc * | m_document |
|
Class Php5Writer is a PHP code generator for UMLClassifier objects. Just call writeClass and feed it a UMLClassifier.
◆ Php5Writer()
Php5Writer::Php5Writer |
( |
| ) |
|
◆ ~Php5Writer()
Php5Writer::~Php5Writer |
( |
| ) |
|
|
virtual |
◆ language()
Returns "PHP".
- Returns
- the programming language identifier
Implements CodeGenerator.
◆ reservedKeywords()
QStringList Php5Writer::reservedKeywords |
( |
| ) |
const |
|
virtual |
Get list of reserved keywords.
- Returns
- the list of reserved keywords
Reimplemented from CodeGenerator.
◆ writeAttributes() [1/2]
void Php5Writer::writeAttributes |
( |
UMLAttributeList & |
atList, |
|
|
QTextStream & |
php |
|
) |
| |
|
private |
Write a list of class attributes.
- Parameters
-
atList | the list of attributes |
php | output stream for the PHP file |
◆ writeAttributes() [2/2]
void Php5Writer::writeAttributes |
( |
UMLClassifier * |
c, |
|
|
QTextStream & |
php |
|
) |
| |
|
private |
Write all the attributes of a class.
- Parameters
-
c | the class we are generating code for |
php | output stream for the PHP file |
◆ writeClass()
◆ writeOperations() [1/2]
void Php5Writer::writeOperations |
( |
const QString & |
classname, |
|
|
UMLOperationList & |
opList, |
|
|
QTextStream & |
php, |
|
|
bool |
isInterface = false , |
|
|
bool |
generateErrorStub = false |
|
) |
| |
|
private |
Write a list of class operations.
- Parameters
-
classname | the name of the class |
opList | the list of operations |
php | output stream for the PHP file |
isInterface | indicates if the operation is an interface member |
generateErrorStub | true generates trigger_error("Implement " . __FUNCTION__) |
◆ writeOperations() [2/2]
void Php5Writer::writeOperations |
( |
UMLClassifier * |
c, |
|
|
QTextStream & |
php |
|
) |
| |
|
private |
Write all operations for a given class.
- Parameters
-
c | the concept we are generating code for |
php | output stream for the PHP file |
The documentation for this class was generated from the following files: