![]() |
Xataface
2.0alpha2
Xataface Application Framework
|
Public Member Functions | |
| getGoogleLanguage ($lang) | |
| Dataface_TranslationForm (&$record, $source=null, $dest=null, $query='', $fieldnames=null) | |
| loadRecords () | |
| _buildWidget ($field) | |
| getFormTemplate () | |
| getGroupTemplate ($name) | |
| getFieldGroupTemplate ($name) | |
| save ($values) | |
| display () | |
Public Member Functions inherited from Dataface_QuickForm | |
| Dataface_QuickForm ($tablename, $db='', $query='', $formname='', $new=false, $fieldnames=null, $lang=null) | |
| formSubmitted () | |
| & | getRecord () |
| setSubmitLabel ($label) | |
| Sets the label of the submit button for this form. This will override the default submit label in xataface. If it is set to null then the default label will be used. | |
| getSubmitLabel () | |
| Returns the label to use as the submit button for the form. | |
| _fillArray (&$arr1, $arr2) | |
| _buildWidget (&$field) | |
| tagFormAndSession () | |
| _build () | |
| & | getElementByFieldName ($fieldname) |
| pullField ($fieldname) | |
| pull () | |
| push () | |
| validate () | |
| pushField ($fieldname) | |
| pullValue ($fieldname) | |
| pushValue ($fieldname, &$metaValues, $element=null) | |
| displayTabs () | |
| getElementTemplate ($fieldName='') | |
| getGroupElementTemplate ($groupName='') | |
| getKeys () | |
| deserialize ($field) | |
| serialize ($field) | |
| _formatFieldName ($fieldname) | |
| htmlValues () | |
Data Fields | |
| $sourceLanguage = null | |
| $destinationLanguage = null | |
| $records = array() | |
| $_dest_translatedFields | |
| $translatableLanguages = array() | |
Data Fields inherited from Dataface_QuickForm | |
| $tablename | |
| $db | |
| $_iniFile | |
| $_query | |
| $_exactMatches = false | |
| $_table | |
| $_record | |
| $_resultSet | |
| $_attributes = array() | |
| $_renderer | |
| $_new = false | |
| $overrideNoQuery = false | |
| $_fields = array() | |
| $_isBuilt = false | |
| $_fieldnames = null | |
| $_lang | |
| $_changed_fields = array() | |
| $tab | |
| $app | |
| $submitLabel = null | |
Additional Inherited Members | |
Static Public Member Functions inherited from Dataface_QuickForm | |
| static & | createNewRecordForm ($tablename, $fieldnames=null) |
| static & | createEditRecordForm (&$tablenameOrRecord, $fieldnames=null) |
Static Public Attributes inherited from Dataface_QuickForm | |
| static | $TRACK_SUBMIT = true |
Definition at line 25 of file TranslationForm.php.
| _buildWidget | ( | $field | ) |
Definition at line 146 of file TranslationForm.php.
| Dataface_TranslationForm | ( | & | $record, |
$source = null, |
|||
$dest = null, |
|||
$query = '', |
|||
$fieldnames = null |
|||
| ) |
Creates a new translation form.
| $record | Reference to Dataface_Record object to be translated. |
| $source | The 2-digit language code of the source language. |
| $dest | The 2-digit language code of the destination language. |
| $fieldnames | Optional array of fields that are to be translated. By default all translatable fields will be translated. |
Definition at line 47 of file TranslationForm.php.
| display | ( | ) |
Dataface_PermissionsTool::edit($this->_table)
Reimplemented from Dataface_QuickForm.
Definition at line 247 of file TranslationForm.php.
| getFieldGroupTemplate | ( | $name | ) |
Reimplemented from Dataface_QuickForm.
Definition at line 215 of file TranslationForm.php.
| getFormTemplate | ( | ) |
Reimplemented from Dataface_QuickForm.
Definition at line 162 of file TranslationForm.php.
| getGoogleLanguage | ( | $lang | ) |
Definition at line 33 of file TranslationForm.php.
| getGroupTemplate | ( | $name | ) |
Reimplemented from Dataface_QuickForm.
Definition at line 196 of file TranslationForm.php.
| loadRecords | ( | ) |
Definition at line 101 of file TranslationForm.php.
| save | ( | $values | ) |
Reimplemented from Dataface_QuickForm.
Definition at line 238 of file TranslationForm.php.
| $_dest_translatedFields |
Definition at line 30 of file TranslationForm.php.
| $destinationLanguage = null |
Definition at line 28 of file TranslationForm.php.
| $records = array() |
Definition at line 29 of file TranslationForm.php.
| $sourceLanguage = null |
Definition at line 27 of file TranslationForm.php.
| $translatableLanguages = array() |
Definition at line 31 of file TranslationForm.php.
1.8.1.2