Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
Public Member Functions | Data Fields
Dataface_TranslationForm Class Reference
Inheritance diagram for Dataface_TranslationForm:
Dataface_QuickForm

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

Detailed Description

Definition at line 25 of file TranslationForm.php.

Member Function Documentation

_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.

Parameters
$recordReference to Dataface_Record object to be translated.
$sourceThe 2-digit language code of the source language.
$destThe 2-digit language code of the destination language.
$fieldnamesOptional 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.

Field Documentation

$_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.


The documentation for this class was generated from the following file: