public abstract class AbstractPhpBuilder<F extends AbstractPhpFormat> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTACCESS |
static String |
INDEX_HTML |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPhpBuilder(F format,
String encoding,
String packagePath) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildLanguagePhp()
language.php erzeugen.
|
protected void |
buildObjectPdf(AbstractExpose exposeBuilder,
ExportEntry entry,
String estateKey,
File estateDir,
Connection c)
PDF-Exposé einer Immobilie erzeugen.
|
protected void |
buildObjectPdf(AbstractExpose exposeBuilder,
ExportEntry entry,
String estateKey,
File estateDir,
Locale lang,
Connection c)
PDF-Exposé einer Immobilie erzeugen.
|
protected String |
buildObjectPhp(com.openindex.openestate.impl.EstateImpl estate,
String estateKey,
DbAgencyObject.Status status,
com.openindex.openestate.impl.AgentImpl agent,
com.openindex.openestate.impl.AgentContactImpl contact,
Date createdAt,
Date modifiedAt)
object.php erzeugen.
|
protected String |
buildObjectTextsPhp(com.openindex.openestate.impl.EstateImpl estate,
String estateKey)
texts.php erzeugen.
|
protected String |
buildTermsPhp(com.openindex.openestate.impl.AgentImpl agent)
terms.php erzeugen.
|
protected String |
buildTranslationPhp(Locale l)
i18n.php erzeugen.
|
protected void |
extractScripts(File directory) |
F |
getFormat() |
protected void |
initLanguagePhpValues(Map<String,String> values) |
protected void |
initObjectPhpValues(Map<String,String> values,
com.openindex.openestate.impl.EstateImpl estate,
String estateKey,
DbAgencyObject.Status status,
com.openindex.openestate.impl.AgentImpl agent,
com.openindex.openestate.impl.AgentContactImpl contact,
Date createdAt,
Date modifiedAt) |
protected void |
initObjectTextsPhpValues(Map<String,String> values,
com.openindex.openestate.impl.EstateImpl estate,
String estateKey) |
protected void |
initTermsPhpValues(Map<String,String> values,
com.openindex.openestate.impl.AgentImpl agent) |
protected void |
initTranslationPhpValues(Map<String,String> values,
Locale l) |
protected com.openindex.openestate.impl.AgentContactImpl |
lookupContact(String contactId,
com.openindex.openestate.impl.TransferAgencyImpl agency) |
protected com.openindex.openestate.impl.EstateImpl |
lookupEstate(String key,
com.openindex.openestate.impl.TransferAgencyImpl agency) |
protected String |
readResource(String name) |
protected String |
readResource(String name,
Map<String,String> values) |
protected String |
replaceVariable(String php,
String varName,
Object varValue) |
protected void |
saveResource(String name,
File f)
Hilfsfunktion zum Speichern einer Ressource aus dem PHP-Classpath in eine Datei.
|
protected void |
saveText(String txt,
File f)
Hilfsfunktion zum Speichern eines Textes in eine Datei.
|
abstract void |
write(com.openindex.openestate.impl.TransferImpl transfer,
ExportContext context,
DbAgencyExpose expose) |
protected String |
writeAddress(com.openindex.openestate.impl.AddressImpl address,
Locale[] languages,
int indent)
Adresse als PHP-Array schreiben.
|
protected String |
writeArrayLine(String key,
Boolean value,
int indent)
Key-/Value-Paar in ein PHP-Array schreiben.
|
protected String |
writeArrayLine(String key,
Date value,
int indent)
Key-/Value-Paar in ein PHP-Array schreiben.
|
protected String |
writeArrayLine(String key,
Enum[] options,
int indent)
Key-/Value-Paar in ein PHP-Array schreiben.
|
protected String |
writeArrayLine(String key,
Number value,
int indent)
Key-/Value-Paar in ein PHP-Array schreiben.
|
protected String |
writeArrayLine(String key,
String[] value,
int indent)
Key-/Value-Paar in ein PHP-Array schreiben.
|
protected String |
writeArrayLine(String key,
String value,
int indent)
Key-/Value-Paar in ein PHP-Array schreiben.
|
protected String |
writeArrayNode(String node,
int indent)
PHP-Array innerhalb eines PHP-Arrays darstellen.
|
protected String |
writeArrayNode(String key,
String node,
int indent)
PHP-Array innerhalb eines PHP-Arrays darstellen.
|
protected void |
writeHtaccess(File folder) |
protected void |
writeIndexHtml(File folder) |
public static final String INDEX_HTML
public static final String HTACCESS
protected String buildLanguagePhp() throws IOException
IOExceptionprotected void buildObjectPdf(AbstractExpose exposeBuilder, ExportEntry entry, String estateKey, File estateDir, Connection c) throws IOException, com.lowagie.text.DocumentException, SQLException
IOExceptioncom.lowagie.text.DocumentExceptionSQLExceptionprotected void buildObjectPdf(AbstractExpose exposeBuilder, ExportEntry entry, String estateKey, File estateDir, Locale lang, Connection c) throws IOException, com.lowagie.text.DocumentException, SQLException
IOExceptioncom.lowagie.text.DocumentExceptionSQLExceptionprotected String buildObjectPhp(com.openindex.openestate.impl.EstateImpl estate, String estateKey, DbAgencyObject.Status status, com.openindex.openestate.impl.AgentImpl agent, com.openindex.openestate.impl.AgentContactImpl contact, Date createdAt, Date modifiedAt) throws IOException
IOExceptionprotected String buildObjectTextsPhp(com.openindex.openestate.impl.EstateImpl estate, String estateKey) throws IOException
IOExceptionprotected String buildTermsPhp(com.openindex.openestate.impl.AgentImpl agent) throws IOException
IOExceptionprotected String buildTranslationPhp(Locale l) throws IOException
IOExceptionprotected void extractScripts(File directory) throws IOException
IOExceptionpublic final F getFormat()
protected void initObjectPhpValues(Map<String,String> values, com.openindex.openestate.impl.EstateImpl estate, String estateKey, DbAgencyObject.Status status, com.openindex.openestate.impl.AgentImpl agent, com.openindex.openestate.impl.AgentContactImpl contact, Date createdAt, Date modifiedAt)
protected void initObjectTextsPhpValues(Map<String,String> values, com.openindex.openestate.impl.EstateImpl estate, String estateKey)
protected void initTermsPhpValues(Map<String,String> values, com.openindex.openestate.impl.AgentImpl agent)
protected void initTranslationPhpValues(Map<String,String> values, Locale l)
protected com.openindex.openestate.impl.AgentContactImpl lookupContact(String contactId, com.openindex.openestate.impl.TransferAgencyImpl agency)
protected com.openindex.openestate.impl.EstateImpl lookupEstate(String key, com.openindex.openestate.impl.TransferAgencyImpl agency)
protected String readResource(String name) throws IOException
IOExceptionprotected String readResource(String name, Map<String,String> values) throws IOException
IOExceptionprotected void saveResource(String name, File f) throws IOException
name - Name der Ressourcef - ZieldateiIOException - IO-Fehlerprotected void saveText(String txt, File f) throws IOException
txt - Textf - ZieldateiIOException - IO-Fehlerpublic abstract void write(com.openindex.openestate.impl.TransferImpl transfer,
ExportContext context,
DbAgencyExpose expose)
throws IOException,
SQLException
IOExceptionSQLExceptionprotected String writeAddress(com.openindex.openestate.impl.AddressImpl address, Locale[] languages, int indent)
address - Adresseindent - Einrückungprotected String writeArrayLine(String key, String value, int indent)
key - Keyvalue - Valueindent - Einrückungprotected String writeArrayLine(String key, Enum[] options, int indent)
key - Keyoptions - Valueindent - Einrückungprotected String writeArrayLine(String key, String[] value, int indent)
key - Keyvalue - Valueindent - Einrückungprotected String writeArrayLine(String key, Date value, int indent)
key - Keyvalue - Valueindent - Einrückungprotected String writeArrayLine(String key, Number value, int indent)
key - Keyvalue - Valueindent - Einrückungprotected String writeArrayLine(String key, Boolean value, int indent)
key - Keyvalue - Valueindent - Einrückungprotected String writeArrayNode(String node, int indent)
node - PHP-Code des eingebundenen Arraysindent - Einrückungprotected String writeArrayNode(String key, String node, int indent)
key - Keynode - PHP-Code des eingebundenen Arraysindent - Einrückungprotected void writeHtaccess(File folder) throws IOException
IOExceptionprotected void writeIndexHtml(File folder) throws IOException
IOExceptionCopyright © 2019 OpenEstate. All rights reserved.