modules/Studio/parsers/StudioParser.php
\StudioParser
Package: SugarCRM
interface for studio parsers
Properties
Methods

addSlotToForm(
$slot_count, $display_count
)
:
voiddelete:-1 add:2000 swap: 0 - 1999
Parameters
| Name | Type | Description |
|---|---|---|
| $slot_count | ||
| $display_count |

buildImageButtons(
$buttons, $horizontal
=
true
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $buttons | ||
| $horizontal |

cacheXTPL(
$file, $cache_file, $preview_file
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $file | ||
| $cache_file | ||
| $preview_file |

disableInputs(
$str
)
:
voidSTATIC FUNCTION DISABLE INPUTS IN AN HTML STRING
Parameters
| Name | Type | Description |
|---|---|---|
| $str |

handleSave(
)
:
voidtakes the submited form and parses the file moving the fields around accordingly it also checks if the original file has a matching field and uses that field instead of attempting to generate a new one

handleSaveLabels(
$module_name, $language
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $module_name | ||
| $language |

writeToCache(
$file, $view, $preview_file
=
false
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $file | ||
| $view | ||
| $preview_file |